Commit Graph

28 Commits

Author SHA1 Message Date
Sam Gardner 75afba12d1 BAEL-7240 Add example code for verifying lambda calls with mockito 2023-12-04 13:18:04 +00:00
Jonathan Cook 2e58e30ffa BAEL-6221 Get Mocks from MockedConstruction in Mockito (#14776)
Co-authored-by: jcook02 <jonathan.paul.cook@ext.esa.int>
2023-09-19 18:51:33 +02:00
Shahul Basha f3069c6ebc BAEL-6830 (#14742)
* BAEL-6830 example changed based on editor review comments

* BAEL-6830 example changed based on editor review comments

* BAEL-6830 example changed based on editor review comments
2023-09-10 08:45:10 -07:00
davidmartinezbarua c23598241f Merge pull request #14721 from sam-gardner/BAEL-6729-mock-same-method-different-params
BAEL-6729 Add example code for mocking one method with multiple param…
2023-09-08 14:17:23 -03:00
Shahul Basha 75046a3f32 BAEL-6830 (#14722)
* BAEL-6830 initial commit

* BAEL-6830 clean up code
2023-09-05 17:41:18 -07:00
Sam Gardner 4c7bc8d19a BAEL-6729 Add example code for mocking one method with multiple parameters 2023-09-05 19:18:56 +01:00
davidmartinezbarua fec5f3af14 Merge pull request #14220 from thibaultfaure/article/BAEL-6482
BAEL-6482 Code for the Matching Null With Mockito article
2023-06-15 17:05:53 -03:00
thibault.faure d928abe033 BAEL-6482 Code for the Matching Null With Mockito article 2023-06-10 16:30:05 +02:00
thibault.faure 1e4c42c6d1 BAEL-6587 Code for the Mockito Exception article 2023-06-05 20:19:07 +02:00
Abhinav Pandey 113c42199a BAEL-5777 - Mocking a singleton with Mockito (#12977)
* BAEL-5777 - Mocking a singleton with Mockito

* BAEL-5777 - Mocking a singleton with Mockito - changing test class name

* BAEL-5777 - Mocking a singleton with Mockito - moving to new module
2022-11-07 10:17:03 +05:30
anuragkumawat b23fcdc4c4 JAVA-13336 Refactor mockito modules (#12517)
* JAVA-13336 Refactor mockito modules

* JAVA-13336 Fix Jenkins build
2022-07-21 23:10:50 +05:30
Dhawal Kapil 24d4feb541 JAVA-12032 Move Mockito ebook articles code to common module - mockito-simple- Delete mockito-3 since it had only 1 article which was moved to mockito-simple 2022-07-15 17:52:21 +05:30
Azhwani 7f97acf361 BAEL-4469: Update Introduction to Mockito AdditionalAnswers (#12267)
* init commit

* improve test cases
2022-06-05 17:26:59 +02:00
chaos2418 000dcdf966 JAVA-3591: updating mockito-core to 4.1.0 2021-12-18 13:40:53 +05:30
Dhawal Kapil 1ab0a19d25 Java 3590 (#11367) (#11380)
* Java 3590 (#11367)

* JAVA-3590: updating junit-jupiter dependency in the main pom.xml

* resolving unnecessary mockito stubbings exception

* adding junit-bom in dependency management

* fixing tests which were not getting discovered

* Revert "fixing tests which were not getting discovered"

This reverts commit 2e9ed8df42eb96f7e0929167aabbc2ddd374a263.

* fixing tests in ninja, open-liberty and spring-ejb

* removing junit4 dependency and replacing it with junit-vintage-engine

* removing junit4 dependency and replacing it with junit-vintage-engine in testing-modules, maven-modules and aws-lambda

* removing junit dependency and replacing it with junit-vintage-engine

* removing junit and replacing it with junit-vintage-engine

* fixing tests that were not getting discovered due to old version of junit:junit

* updated failsafe plugin configuration to skip integration tests in blade

* fixing tests that were not getting discovered due to old version of junit:junit

* fixing tests in libraries and libraries-2 modules

Co-authored-by: chaos2418 <>

* Java 3590 - fixing integration tests in restx and spring-5-webflux (#11382)

* JAVA-3590: updating junit-jupiter dependency in the main pom.xml

* resolving unnecessary mockito stubbings exception

* adding junit-bom in dependency management

* fixing tests which were not getting discovered

* Revert "fixing tests which were not getting discovered"

This reverts commit 2e9ed8df42eb96f7e0929167aabbc2ddd374a263.

* fixing tests in ninja, open-liberty and spring-ejb

* removing junit4 dependency and replacing it with junit-vintage-engine

* removing junit4 dependency and replacing it with junit-vintage-engine in testing-modules, maven-modules and aws-lambda

* removing junit dependency and replacing it with junit-vintage-engine

* removing junit and replacing it with junit-vintage-engine

* fixing tests that were not getting discovered due to old version of junit:junit

* updated failsafe plugin configuration to skip integration tests in blade

* fixing tests that were not getting discovered due to old version of junit:junit

* fixing tests in libraries and libraries-2 modules

* fixing integration tests in restx and spring-5-webflux

Co-authored-by: chaos2418 <>

Co-authored-by: chaos2418 <92030908+chaos2418@users.noreply.github.com>
2021-10-29 09:37:04 +05:30
Jonathan Cook 9144660a72 BAEL-4756 - Mockito MockSettings - fix spelling (#10438)
* BAEL-4706 - Spring Boot with Spring Batch

* BAEL-3948 - Fix test(s) in spring-batch which leaves repository.sqlite
changed

* BAEL-4736 - Convert JSONArray to List of Object using camel-jackson

* BAEL-4756 - Mockito MockSettings

* BAEL-4756 - Mockito MockSettings - fix spelling

Co-authored-by: Jonathan Cook <jcook@sciops.esa.int>
2021-01-23 07:08:50 +01:00
Jonathan Cook b9c81b0ced BAEL-4756 - Mockito MockSettings (#10423)
* BAEL-4706 - Spring Boot with Spring Batch

* BAEL-3948 - Fix test(s) in spring-batch which leaves repository.sqlite
changed

* BAEL-4736 - Convert JSONArray to List of Object using camel-jackson

* BAEL-4756 - Mockito MockSettings

Co-authored-by: Jonathan Cook <jcook@sciops.esa.int>
2021-01-17 11:39:53 +01:00
fanatixan 74efd2530e added code snippets for bael-4554 (#9979) 2020-09-06 19:13:25 -07:00
kwoyke 6889e238ff BAEL-3415: Get rid of the MockitoAnnotations.initMocks (#9787) 2020-07-30 07:50:21 +02:00
developerDiv 55d15037c0 Rename DeliveryPlatform send method to 'deliver' to aid readability and avoiding confusion with EmailService.send method
Re-arrange order of mocks and inject mocks

Rename argument matcher and captor tests
2020-07-26 17:08:44 +01:00
developerDiv ab755bf098 Add static class to 'eq' and 'when' for greater readability. 2020-07-21 21:32:40 +01:00
developerDiv 8309e56268 Rename tests 2020-07-19 15:44:48 +01:00
developerDiv 2a88d24386 Initial commit of ArgumentCaptor 2020-07-19 09:35:35 +01:00
Gergo Petrik b31b84d475 Mockint objectmapper with mockito (#9017)
* Mockint objectmapper with mockito

* enforcing naming convention for test classes

* removed Spring

* removed unattended changes

* modified example

* simplified call stack in flower validator
2020-04-24 09:00:30 -05:00
Belma Jakupovic 86c4eea3dd additional answers mockito change repository method (#9082) 2020-04-15 21:15:59 +02:00
Belma Jakupovic b30ee62805 Belma Jakupovic - Mockito additional answers (#9041) 2020-04-06 20:22:28 +02:00
Jonathan Cook b4e12c3cbf BAEL-3416 - Mockito and Fluent APIs (#8201)
* BAEL-3416 - Mockito and Fluent APIs
- stage changes

* staging changes

* BAEL-3416 - Mockito and Fluent APIs
2019-11-17 08:44:14 -08:00
Eric Martin 3225470df5 Merge pull request #8125 from eugenp/revert-8119-BAEL-3275-2
Revert "BAEL-3275: Using blocking queue for pub-sub"
2019-10-31 20:43:47 -05:00