# Tests

### Introduction

Hi developers!

Welcome to the bunq Java SDK integration tests. Currently we are not\
targeting the 100% test coverage, but rather want to be certain that the most\
common scenarios can run without any errors.

### Setup

First create a certificate and key using this command. Update "Your App Id" to a unique id.

```
openssl req -x509 -newkey rsa:4096 -keyout src/test/Resource/key.pem -out src/test/Resource/certificate.pem -days 365 -nodes -subj "/CN=Your App Id/C=NL" && \
echo -e "\n--- KEY ---\n" && cat src/test/Resource/key.pem && \
echo -e "\n--- CERTIFICATE ---\n" && cat src/test/Resource/certificate.pem
```

### Execution

To run tests via IntelliJ IDEA, you must make sure that you've build the project with gradle.

Afterwards you can right click on the tests folders and should be able to run\
the tests cases form the IDE.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.bunq.com/getting-started/tools/unmaintained-software-development-kits-sdks/java/tests.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
