Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kartikeytewari-ul committed Jun 3, 2024
2 parents 8fd9e8d + e9bb7ad commit f4938a1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
Binary file added docs/assets/images/junitboilerplate.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions docs/generate_automated_junit.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ Unlogged.io tracks the execution of your code as it runs. This tracking captures
!!! tip Utilizing Boilerplate Generation
If generating JUnit tests post-execution does not align with your workflow, or if you prefer to set up tests in advance, Unlogged.io offers a boilerplate generation option. This feature allows you to create template-based tests before running your actual code.

Here is how you can create boilerplate for your JUnit tests.

![](assets/images/junitboilerplate.gif)


The `canDeliverToCustomer` method below determines if a delivery can be made to a customer based on their location and weather conditions:

Expand Down
4 changes: 4 additions & 0 deletions docs/mocking.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ Use postman/swagger or Direct Invoke and the unlogged will show you the mocks wi

![](assets/images/mockingfinal.gif)

## Choices of Mock Execution

Unlogged provides developers with a versatile mocking feature that allows for three distinct behaviors when handling method returns within tests. You can set a mock to execute its normal behavior, return a null value, or throw a designated exception. This flexibility supports various testing scenarios, enabling developers to thoroughly test software behavior under different conditions.

## What happens underneath when you mock?

The plugin informs the sdk to replace the line of code with its mocks. In rutime, the mocks get executed instead of actual code.
Expand Down

0 comments on commit f4938a1

Please sign in to comment.