Commit Graph

538 Commits

Author SHA1 Message Date
kwoyke 75db30f1c1 Merge pull request #12538 from dkapil/task/JAVA-13629
Task/java 13629
2022-07-31 22:15:33 +02:00
kwoyke e07dba99a3 Merge pull request #12536 from dkapil/task/JAVA-13628
Task/java 13628
2022-07-31 22:13:25 +02:00
Dhawal Kapil 57aa81d552 JAVA-13630 Updated code for Mockito - Using Spies Article 2022-07-31 23:26:36 +05:30
Dhawal Kapil 53629eeb0b JAVA-13627 Updated code to use assertThatThrownBy instead of assertThrows 2022-07-31 21:57:45 +05:30
Dhawal Kapil 9f31e46b03 JAVA-13629 Added missing tests from Mockito ArgumentMatchers article 2022-07-26 23:31:25 +05:30
Dhawal Kapil 48461ed6cc JAVA-13628 Minor upgrades 2022-07-26 18:38:10 +05:30
Dhawal Kapil 4e13672a93 JAVA-13627 Removed MockitoMockIntegrationTest as it was a duplicate, other cleanup and API upgrades 2022-07-26 18:23:50 +05:30
Dhawal Kapil 4dab3eb46d JAVA-12033 Upgraded assertion libraries and minor cleanup 2022-07-26 12:58:41 +05:30
Dhawal Kapil 80a4ca1c2b JAVA-13625 Updated/upgraded Mockito Annotations Code 2022-07-26 12:41:56 +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 144c2f1239 JAVA-12032 Added mockito-simple to testing-modules list 2022-07-15 17:54:12 +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
panos-kakos a9c0015e64 Moved spring-mockito to testing-modules (#12476)
Co-authored-by: panagiotiskakos <panagiotis.kakos@libra-is.com>
2022-07-11 20:59:42 +05:30
Loredana Crusoveanu 212d5422d4 Merge pull request #12292 from eugenp/lor6-patch-2
Update ConditionalExecutionUnitTest.java
2022-06-30 16:53:13 +03:00
Azhwani 7f97acf361 BAEL-4469: Update Introduction to Mockito AdditionalAnswers (#12267)
* init commit

* improve test cases
2022-06-05 17:26:59 +02:00
Loredana Crusoveanu 5127c9aebf Update ConditionalExecutionUnitTest.java 2022-06-01 16:34:10 +03:00
Loredana Crusoveanu a1b83f76f2 Merge pull request #12114 from Alex-Golub/study/test-order
The Order of Tests in JUnit
2022-05-27 21:41:39 +03:00
Loredana Crusoveanu 98d8db1b11 Merge pull request #12100 from Alex-Golub/study/junit5-intro
JUnit5 writing test conventions, reformatting and import optimization
2022-05-27 21:21:51 +03:00
Loredana Crusoveanu 2fca2a1635 Merge pull request #12106 from Alex-Golub/study/junit4vs5
Assertions in JUnit 4 and JUnit 5 suggestions
2022-05-27 21:21:16 +03:00
Loredana Crusoveanu f1dfbfe5b8 Merge pull request #12105 from Alex-Golub/study/assert-exception
JUnit5 conventions + code rearrangement
2022-05-27 21:18:24 +03:00
Loredana Crusoveanu 89f51ac391 Merge branch 'master' into study/junit5-intro 2022-05-27 21:16:59 +03:00
kwoyke 7c2845bc79 Merge pull request #12185 from freelansam/JAVA-11792
JAVA-11792: Fix formatting of POMs
2022-05-09 11:04:26 +02:00
kwoyke 695e9b1b0d Merge pull request #12149 from anuragkumawat/JAVA-11776
JAVA-11776 Remove usage of deprecated JUnitPlatform.class in junit5 module
2022-05-09 10:55:14 +02:00
sampadawagde aed8f9100b JAVA-11792: Fix formatting of POMs 2022-05-08 16:36:25 +05:30
kwoyke 072e09eee8 Merge pull request #12150 from anuragkumawat/JAVA-11777
JAVA-11777 Remove usage of deprecated JUnitPlatform.class in junit5-migration module
2022-05-06 13:44:58 +02:00
anuragkumawat d105d1f347 JAVA-11777 Remove usage of deprecated JUnitPlatform.class in junit5-migration module 2022-04-30 22:18:43 +05:30
anuragkumawat 4c7406b65c JAVA-11775 Remove usage of deprecated JUnitPlatform.class in junit-5-basics module 2022-04-30 21:49:57 +05:30
anuragkumawat a9eba4ed49 JAVA-11775 Remove usage of deprecated JUnitPlatform.class in junit-5-basics module 2022-04-30 14:09:10 +05:30
Alex Golub 8861efd87a Swap these 2 arguments, so they are in the correct order: expected value, actual value 2022-04-22 21:50:24 +03:00
Alex Golub e0bdd5a62d Junit4 'assertEquals()' from 'Assert' should be replaced with JUnit5 call to method from 'org.junit.jupiter.api.Assertions' 2022-04-22 21:49:00 +03:00
Alex Golub da30a3efd7 JUnit5 test classes and methods should have default package visibility 2022-04-22 21:27:02 +03:00
Alex Golub 0e399659c1 Simplify to assertNull(Object, String) 2022-04-21 11:50:34 +03:00
Alex Golub f56a57f901 Add an explanation about why this test is skipped as value of @Disabled 2022-04-21 11:50:34 +03:00
Alex Golub 9df069c862 Typos 2022-04-21 11:50:33 +03:00
Alex Golub 4a30842e10 Explicitly create Supplier<String> to demonstrate use of assertNull(Object, Supplier<String>) method 2022-04-21 11:26:51 +03:00
Alex Golub 618c69690d Code reformat 2022-04-21 11:07:21 +03:00
Alex Golub 06c16d1eb0 JUnit5 test classes and methods should have default package visibility 2022-04-21 11:06:23 +03:00
Alex Golub 7d343f7674 assertThat(T, Matcher<? super T>) Deprecated. Use org.hamcrest.MatcherAssert.assertThat() 2022-04-21 11:05:26 +03:00
Alex Golub 95aff67d58 Method name typo 2022-04-21 10:30:44 +03:00
Alex Golub 0af6112abf Delete redundant curly braces when using single lambda statement 2022-04-21 10:30:28 +03:00
Alex Golub f1801bbd6f JUnit5 test classes and methods should have default package visibility 2022-04-21 10:29:26 +03:00
Alex Golub 7ef7265dce Method name typo 2022-04-20 14:51:58 +03:00
Alex Golub 37b5df83c5 Statement lambda can be replaced with expression lambda 2022-04-20 14:51:58 +03:00
Alex Golub 2327a11eca Assertion arguments should be passed in the correct order 2022-04-20 14:51:58 +03:00
Alex Golub efaf789e71 JUnit5 test classes and methods should have default package visibility 2022-04-20 14:51:58 +03:00
Alex Golub d722c0d1d1 Reformat
Put each assertion on separate line to improve readability
Explain why test is marked @Disabled
2022-04-20 13:57:15 +03:00
Alex Golub 73e2047689 Use the default package visibility and optimize imports 2022-04-20 13:50:30 +03:00
sampadawagde e6bbac2a78 fixed typo 2022-04-03 16:54:01 +05:30
kwoyke cdc6380359 Merge pull request #11920 from freelansam/JAVA-10138
JAVA-10138 - Fix formatting of POMs
2022-03-14 15:00:17 +01:00
sampadawagde d2cea2ef06 resolve conflicts 2022-03-13 14:53:36 +05:30
sampadawagde b8176a265a JAVA-10138 - Fix formatting of POMs 2022-03-13 14:48:44 +05:30
Haroon Khan ef88a1803f [JAVA-10432] Rename and enable testng-command-line module 2022-03-04 21:17:23 +00:00
sampadawagde 34aa920593 JAVA-9825: Upgrade log4j version for modules that use log4j-core library
directly
2022-02-09 16:09:44 +05:30
Asjad J 856f101dc8 Update README.md
added link back to article: Running a TestNG Project From the Command Line

[skip ci]
2022-01-24 11:10:50 +05:00
Asjad J 4bebebad69 Update README.md
added link back to article: Get the Name of the Currently Executing Test in JUnit
2022-01-23 10:22:06 +05:00
Yashasvii efcef3152a BAEL-5208: Get the name of the currently executing test in JUnit (#11462)
* Hexagonal Architecture in Java

* Refactor Hexagonal Architecture in Java

* Refactor Hexagonal Architecture in Java

* BAEL-5163: HashMap - keySet vs entrySet vs values methods

* BAEL-5163: HashMap - keySet vs entrySet vs values methods

* Revert "Hexagonal Architecture in Java"

This reverts commit 1add21c1

* BAEL-5163: HashMap - keySet vs entrySet vs values methods

* BAEL-5163: HashMap - keySet vs entrySet vs values methods"

* BAEL-5208: Get the name of the currently executing test in JUnit

* BAEL-5208: Get the name of the currently executing test in JUnit

* BAEL-5208: Get the name of the currently executing test in JUnit

* BAEL-5208: Get the name of the currently executing test in JUnit

* BAEL-5208: Get the name of the currently executing test in JUnit

* BAEL-5208: Get the name of the currently executing test in JUnit
2022-01-19 09:20:19 +00:00
Krzysiek 5242966787 JAVA-9486: Use guava.version defined in the parent pom 2022-01-18 09:42:21 +01:00
kwoyke 4eb04dc0bc Merge pull request #11670 from freelansam/JAVA-9022
JAVA-9022: Fix formatting of POMs
2022-01-13 09:50:07 +01:00
victorsempere 29ebe5e849 BAEL-4631 (#11644)
* BAEL-4631

First code example draft

* BAEL-4631

Removed unnecesary constructors
Removed unnecessary comments
Removed unnecessary test

* BAEL-4631

Fixed xml files format

* BAEL-4631

Fixing pom.xml and testng.xml indentation
2022-01-12 23:51:07 +00:00
sampadawagde 65f643262d JAVA-9022: Fix formatting of POMs 2022-01-10 22:05:47 +05:30
chaos2418 1227c38388 JAVA-3591: updating mockito version in parent-boot-2 2021-12-23 14:58:50 +05:30
chaos2418 000dcdf966 JAVA-3591: updating mockito-core to 4.1.0 2021-12-18 13:40:53 +05:30
Haroon Khan 1ff29cf596 [JAVA-8703] Fix Live test to allow isolated execution 2021-12-01 22:41:31 +00:00
Krzysiek f9f37ac4e6 JAVA-8709: Extract commons-collections4.version property to the main pom.xml 2021-11-26 13:17:01 +01:00
Haroon Khan 805500140f [JAVA-8355] Move article code to spring-testing-2 module 2021-11-25 19:51:32 +00:00
kwoyke f5c35ffe97 Merge pull request #11506 from eugenp/JAVA-3592
JAVA-3592: Upgrade h2 dependency in the main pom.xml
2021-11-25 13:31:47 +01:00
kwoyke c0a0247cf7 Merge branch 'master' into JAVA-3592 2021-11-25 09:03:54 +01:00
kwoyke cd51ebdcc7 Merge pull request #11497 from freelansam/JAVA-3592
Fix integration build
2021-11-24 19:27:30 +01:00
Krzysiek 8b280e689a JAVA-8667: Remove hamcrest dependency declarations from the child modules 2021-11-24 13:20:20 +01:00
johnA1331 cadb1a1cd0 Update README.md 2021-11-24 14:23:37 +08:00
sampadawagde 2d142da809 Fix integration build 2021-11-24 09:06:52 +05:30
kwoyke 1871d1a89c Merge pull request #11468 from chaos2418/JAVA-8405
JAVA-8405: reducing logging for tutorials-build-job
2021-11-23 13:43:19 +01:00
kwoyke 1ee2327ab3 BAEL-5242: Add surefire config for TestNG (#11471)
* BAEL-5242: Add surefire config for TestNG

* BAEL-5242: Configure surefire to run unit and integration tests
2021-11-23 08:26:31 +03:00
davidmartinezbarua ffacd9b9ae Merge pull request #11413 from Trixi-Turny/BAEL-5209-assert-type-of-object
BAEL-5209 example with JUnit5, Hamcrest and AssertJ
2021-11-22 16:11:16 -03:00
kwoyke 592376bf09 Merge pull request #11477 from freelansam/JAVA-3592
JAVA-3592: Upgrade h2 dependency in the main pom.xml
2021-11-22 09:22:17 +01:00
sampadawagde 848fa01e47 JAVA-3592: Upgrade h2 dependency in the main pom.xml 2021-11-19 23:17:22 +05:30
Loredana Crusoveanu ee70035562 Merge pull request #11470 from kwoyke/JAVA-8436
JAVA-8436: Manage AssertJ dependency in the main pom.xml
2021-11-19 16:56:22 +02:00
Loredana Crusoveanu d3de4302f2 Merge pull request #11401 from azhwani/BAEL-5113
BAEL-5113: Improve the Test Order Article
2021-11-19 16:41:28 +02:00
Azhwani a257d47c6c + Remove junit versions to use those of the main pom 2021-11-19 12:48:29 +01:00
chaos2418 58e6087b3d JAVA-8405: reducing logging for tutorials-build-job 2021-11-19 13:39:00 +05:30
Krzysiek 5b541fa524 JAVA-8436: Upgrade AssertJ Guava to 3.4.0 2021-11-18 23:17:00 +01:00
Krzysiek 1d8f5ee7eb JAVA-8436: Fix unit tests in assertion-libraries 2021-11-18 19:29:30 +01:00
Krzysiek 997b3c5fbf JAVA-8436: Remove AssertJ depenendency from the child modules - part 1 2021-11-18 10:36:49 +01:00
johnA1331 dd9eb450fd Update README.md 2021-11-18 01:09:16 +08:00
Krzysiek d7caae1c24 JAVA-7783: POM properties cleanup 2021-11-16 11:25:14 +01:00
lucaCambi77 157d7ee61c [BAEL-5211] - How to test a Java Optional (#11417)
* feat: add how to test an optional

* fix: review comments

* fix: static final naming convention

* fix: optional equals assertion
2021-11-14 10:09:48 +00:00
Trixi Turny 151753d3ac BAEL-5209 add to modules sdk9 and above 2021-11-10 09:38:31 +00:00
freelansam 77e3e6a419 Merge branch 'master' into JAVA-8204 2021-11-09 18:20:05 +05:30
sampadawagde b984a4b618 JAVA-8204: Fix formatting of POMs 2021-11-09 16:27:03 +05:30
chaos2418 b0176d85cf JAVA-1672: removing surefire configurations from parents 2021-11-07 19:14:37 +05:30
chaos2418 0f8560ed36 JAVA-1672: removing redundant junit-platform-commons declarations 2021-11-05 16:04:59 +05:30
Trixi Turny 86ab50684b BAEL-5209 example with JUnit5, Hamcrest and AssertJ 2021-11-04 19:13:11 +00:00
chaos2418 af4b37592b JAVA-8267: updating testing-modules's junit and surefire configurations 2021-11-04 16:56:08 +05:30
Loredana Crusoveanu 903ca563ad Merge pull request #11397 from chaos2418/JAVA-1665
JAVA-1665: updated parent-java's junit and surefire configurations
2021-11-03 11:54:45 +02:00
chaos2418 64a134f05e JAVA-1665: updated parent-java's junit and surefire configurations 2021-11-03 09:03:23 +05:30
Azhwani 54e7d312dc init commit 2021-11-02 20:27:58 +01:00
Azhwani 1f6c74ecab conflits resolution 2021-11-02 20:25:06 +01:00
chaos2418 9bbd34d45f JAVA-1664: upgrading parent-boot-2 junit and surefire configurations 2021-11-02 14:51:24 +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
johnA1331 06afc4c7b6 Update README.md 2021-10-21 22:08:29 +08:00
johnA1331 3d58e691a4 Update README.md 2021-10-21 21:58:48 +08:00
Mladen Savic b2c4765cc3 Parallel Test Execution for JUnit 5 - refactoring 2021-10-18 18:44:47 +02:00
andresluzu 8dce57b64f BAEL-5210 JUnit fail assertions use cases (#11314)
Co-authored-by: Andres Luzuriaga <aluzuriaga@proofpoint.com>
2021-10-11 17:00:54 -07:00
johnA1331 214c1c385f Update README.md 2021-09-29 23:40:27 +08:00
lucaCambi77 8235298f5b [ BAEL-4339 ] - How to get Junit 4 to ignore a Base Test Class? #11203 (#11204)
* feat: add ignored tests and update run from java

* Revert "feat: add ignored tests and update run from java"

This reverts commit 0a56fa4bf9e29473d04091408c5ce381f2f55f42.

* add ignore package

* fix: remove abstract from rename and ignore

* fix: removes run with and add missing tests
2021-09-28 22:49:28 -05:00
johnA1331 e027dc1150 Update README.md 2021-09-24 13:27:24 +08:00
freelansam fe7d2af8c0 JAVA-7178: Fix formatting of POMs (#11236)
* JAVA-7178: Fix formatting of POMs

* JAVA-7178: fix failing build
2021-09-20 00:04:26 +05:30
johnA1331 8e19ae1195 Update README.md 2021-08-25 21:53:25 +08:00
nishitgoyal17 22e6245c81 Nishit/BAEL-4340 executing junit via command line (#11096)
* executing junit via command line

* incorporating review comments

* incorporating review comments
2021-08-23 19:24:13 -05:00
Loredana Crusoveanu b180037cdc Merge pull request #11038 from GoossensMichael/patch-1
Also consider string interpolation
2021-08-22 19:13:08 +03:00
freelansam 32dde5b5d1 JAVA-6475: Fix formatting of POMs (#11087)
* JAVA-6475: Fix formatting of POMs

* correct build error
2021-08-03 00:27:15 +05:30
Michaël Goossens b9fd869c02 Also consider string interpolation
The above example only works when logging a string without using string interpolation. For example the following log statement: log.debug("This is a log from {}", "David"). This would result in event.getMessage() returning "This is a log from {}" while you would like to see the processed form "This is a log from David". The getMessage().toString() only returns the former while toString() on the event will return the latter. Furthermore the toString() method is redundant on getMessage() as it already is a string.
2021-07-15 23:26:49 +02:00
johnA1331 f02fba02a0 Update README.md 2021-07-07 23:31:00 +08:00
johnA1331 3cca2f8716 Update README.md 2021-07-02 05:32:00 +08:00
kwoyke eb1f4e1e90 JAVA-5875: Upgrade Spring Boot to 2.5.1 (#10956)
* JAVA-5875: Upgrade Spring Boot to 2.5.1

* JAVA-5875: Leave jta module on Spring Boot 2.4.7

* JAVA-5875: Update spring-boot-persistence-mongodb to use embedded Mongo 3.0

* JAVA-5875: Leave spring-data-dynamodb on Spring Boot 2.4.7

* JAVA-5875: ErrorController#getErrorPath has been removed

* JAVA-5875: Fix SQL Script DataSource Initialization

* JAVA-5875: ErrorController#getErrorPath has been removed

* JAVA-5875: Fix RepositoryRestConfigurer

* JAVA-5875: Fix issues caused by rest-assured upgrade

* JAVA-5875: Upgrade spring-cloud-dependencies to 2020.0.3

* JAVA-5875: Leave spring-boot-keycloak on Spring Boot 2.4.7

* JAVA-5875: Fix data.sql script initialization

* JAVA-5875: Leave spring-security-legacy-oidc on Spring Boot 2.4.7

* JAVA-5875: Fix data.sql script initialization

* JAVA-5875: Fix data.sql script initialization

* JAVA-5875: Update de.flapdoodle.embed.mongo dependency

* JAVA-5875: Upgrade spring-cloud-dependencies to 2020.0.3

* JAVA-5875: Update Spring Cloud dependencies

* JAVA-5875: Update cloud dependencies

* JAVA-5875: Defer datasource initialization

* JAVA-5875: Fix rest assured version

* JAVA-5875: Fix Spring Batch serialization issue

* JAVA-5875: Update Spring Cloud Stream version

* JAVA-5875: Update Spring Kafka version

* JAVA-5875: Leave spring-zuul-rate-limiting on Spring Boot 2.4.7

Co-authored-by: Krzysztof Woyke <krzysztof.woyke.sp@lhsystems.com>
2021-06-26 01:20:37 +05:30
shilpsgithub d0d0f71518 Create ThreadGroup.jmx (#10936)
Added file ThreadGroup.jmx for BAEL-4671
2021-06-21 10:10:19 -07:00
johnA1331 bcbb70cbc9 Update README.md 2021-06-09 16:40:11 +08:00
uzma khan 6ab67e6968 [BAEL-4406] Move maven code to testing-libraries-2 2021-06-03 10:11:38 +01:00
KevinGilmore 8ee60907ea BAEL-4636: add link back to article (#10787) 2021-05-19 20:27:34 -05:00
freelansam 8cc6444700 Merge branch 'master' into JAVA-5223 2021-05-17 22:37:02 +05:30
sampadawagde d9db0949cb JAVA-5223: Fix formatting of POMs (Testing Modules) 2021-05-17 20:23:43 +05:30
akhil90s b744d8e6ee Code Coverage with SonarQube and Jacoco (#10674)
* Code Coverage with SonarQube and Jacoco

* SonarQube and Jacoco

* Delete SonarQube and Jacoco From the Root directory

* SonarQube and JaCoCo

* SonarQube And JaCoCo

* BAEL-4636 : Code Coverage with SonarQube and Jacoco

* Shifted to testing-modules/testing-libraries-2

* Removing this project to make a single project

* Code Coverage with SonarQube and Jacoco

* Formatting in pom.xml file

* Delete Directory

* Delete unused directory

* SonarQube And JaCoCo

* SonarQube And JaCoCo
2021-05-16 11:42:35 -05:00
johnA1331 83722371e1 Create README.md 2021-04-29 05:36:53 +08:00
Trixi Turny 5f045808f9 BAEL-4783 run cucumber test as part of acceptance profile 2021-04-26 11:33:20 +01:00
Trixi Turny 7df0ace15e BAEL-4783 use failsave to run integration tests 2021-04-23 13:31:58 +01:00
Trixi Turny b31a927e4e BAEL-4783 fix package name 2021-04-23 09:50:59 +01:00
Loredana Crusoveanu c3b985584b Merge branch 'master' into BAEL-4783-cucumber-tags-junit5 2021-04-21 11:33:56 +03:00
Trixi Turny 61a2ad8d91 BAEL-4783 fix module name 2021-04-19 20:46:13 +01:00
Trixi Turny febcc44ea8 BAEL-4783 remove old dir 2021-04-19 20:46:06 +01:00
Trixi Turny af9cc0deb9 BAEL-4783 rename module and fix indents 2021-04-19 20:45:56 +01:00
Trixi Turny c49ffcc3cd BAEL-4783 remove unused declarations 2021-04-19 20:30:23 +01:00
Krzysztof Woyke a23b752f75 JAVA-3596: Fix exec-maven-plugin config in the testing-modules 2021-04-06 22:31:47 +02:00
Krzysztof Woyke 63e5a2dad0 JAVA-3596: Clean up exec-maven-plugin config 2021-04-02 15:43:27 +02:00
Loredana Crusoveanu 53eedb7ad5 Merge pull request #10614 from kwoyke/JAVA-3578
JAVA-3578: Sub-modules cleanup (pom.xml)
2021-04-01 18:46:22 +03:00
Krzysztof Woyke 28d103508f JAVA-3578: Verify sub-modules - testing-modules 2021-03-31 20:13:00 +02:00
johnA1331 4f0e4e808a Create README.md 2021-04-01 00:18:51 +08:00
Krzysztof Woyke 089da70fb0 JAVA-4931: Cleanup surefire config 2021-03-29 15:22:10 +02:00
Krzysztof Woyke 5e3e710e84 JAVA-3295: Fix pom properties in testing-modules 2021-03-24 10:31:09 +01:00
Krzysztof Woyke df93a6b9e6 JAVA-3295: Use project.build.sourceEncoding and project.reporting.outputEncoding from the main pom.xml 2021-03-24 09:37:43 +01:00
Jonathan Cook f8e9839390 BAEL-4836 - Mocking Static Methods with Mockito (#10580)
* 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

* BAEL-2674 - Upgrade the Okhttp article

* BAEL-4204 - Adding Interceptors in OkHTTP

* BAEL-4836 - Mocking Static Methods with Mockito

Co-authored-by: Jonathan Cook <jcook@sciops.esa.int>
2021-03-23 08:09:39 -07:00
kwoyke 224c569ac3 JAVA-4241: Upgrade Spring Boot to 2.4.3 (#10569)
* JAVA-4241: Upgrade Spring Boot to 2.4.3

* JAVA-4241: Fix CharEncodingCheckControllerUnitTest

* JAVA-4241: Upgrade Spring Framework to 5.3.4 in spring-testing

* JAVA-4241: Fix spring-data-commons version setup in spring-caching

* JAVA-4241: Upgrade jetty-reactive-httpclient in spring-5-reactive-client

* JAVA-4241: Disable failing test
2021-03-19 22:37:39 +05:30
Maiklins 8df2f0f841 Java 4278 update override properties article (#10555)
* JAVA-4278 Update "Override Properties" article

* JAVA-4278 Update override properties article (use JUnit 5)

Co-authored-by: mikr <michael.krimgen@ximedes.com>
2021-03-17 00:20:06 +05:30
johnA1331 f788bcd6c7 Create README.md 2021-03-03 20:50:02 +08:00
Otto Dvalishvili dc650c014c Bael 4781: Introduction to ZeroCode (#10482)
* small example of hexagonal architecture in java

* Bael-4781: Introduction to ZeroCode

* add readme

* Revert "small example of hexagonal architecture in java"

This reverts commit c0f96441

* refactoring

* refactoring
2021-02-25 22:00:21 -06:00
johnA1331 b6570de637 Update README.md 2021-01-28 01:11:32 +08:00
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
Loredana Crusoveanu 119af2bcb9 Merge pull request #10421 from rozagerardo/rozagerardo/JAVA-3717_Update-articles-for-2.4.0--other-properties-modules
[JAVA-3717] Update articles for 2.4.0 - other properties-related articles
2021-01-16 10:32:10 +02:00
Gerardo Roza 1a0655a189 added junit-vintage-engine dependency to avoid issues with existing JUnit4 tests
These are potential issues, since the dependency is included in the root pom
2021-01-13 10:26:38 -03:00
sampadawagde 013902b253 JAVA-4013: README changes 2021-01-12 19:14:50 +05:30
sampadawagde 6052fd6bc8 JAVA-4013: Moved 2 articles to spring-testing-2 2021-01-12 19:14:11 +05:30
Krzysztof Woyke 962e8839d6 Merge remote-tracking branch 'upstream/master' into JAVA-3570 2020-12-29 15:11:31 +01:00
Krzysztof Woyke e5bb567405 Rename finalize methods 2020-12-22 21:27:18 +01:00
Krzysztof Woyke 07276b1aaa JAVA-3570: Upgrade Spring framework to version compatible with Spring Boot 2.4 in spring-testing 2020-12-14 10:59:45 +01:00
johnA1331 623a13b0a9 Update README.md 2020-12-02 19:14:12 +08:00
Eric Martin 10ba4efce6 Merge pull request #10278 from ashleyfrieze/BAEL-4742-Guide-to-System-Stubs
BAEL-4742 guide to system stubs
2020-11-26 20:24:23 -06:00
Ashley Frieze 3c01b8f9f8 BAEL-4742 System Stubs example tests 2020-11-24 23:38:20 +00:00
Ashley Frieze 390b864ff3 BAEL-4742-Guide-To-System-Stubs 2020-11-20 17:44:42 +00:00
Krzysztof Woyke 58750bce50 JAVA-3580: Migrate spring-testing to the parent-boot-2 2020-11-20 16:31:01 +01:00
Loredana Crusoveanu 696f2d80af Merge pull request #10109 from danieltaylor/patch-1
change "Aborted" to "Failed" under testFailed()
2020-10-16 19:15:49 +03:00
Loredana 43feef5b42 add indexes to jpa entities 2020-10-15 19:03:52 +03:00
Stephane Landelle 84d2b3a0f5 Fix JSON payloads in the Gatling script
Motivation:

Ids are numbers (Integers), not Strings.

Modifications:

Remove wrong wrapping double quotes.

Result:

Less parsing overhead on the server side.
2020-10-15 16:26:35 +02:00
Loredana 450614d511 update loops count JAVA-2603 2020-10-13 16:44:18 +03:00
Loredana Crusoveanu 6cccdbd485 Merge pull request #10157 from slandelle/master
Upgrade Gatling versions and remove extra headers
2020-10-13 10:58:45 +03:00
Stephane Landelle 024da8003b Remove RNG upper bound like in Grinder test to avoid race condition in application under test 2020-10-12 18:51:09 +02:00
Stephane Landelle c608c133f6 Remove extra headers as the other tools don't set them and that's extra traffic 2020-10-12 18:50:26 +02:00
Stephane Landelle 453327db2b Upgrade Gatling versions 2020-10-12 18:49:59 +02:00
Mithu Tokder cbb0d50370 updated junit 5 version to latest version 2020-10-11 23:47:08 +05:30
Stephane Landelle eea42f2289 Reset Gatling user state on each iteration 2020-10-09 21:05:09 +02:00
Loredana f3aee7ea03 remove log, formatting 2020-10-09 15:50:27 +03:00
Loredana 68f35280c3 remove lombok, update scripts threads 2020-10-09 15:48:30 +03:00
Loredana Crusoveanu e663f89592 Merge pull request #9980 from slandelle/master
Fix Gatling test used for https://www.baeldung.com/gatling-jmeter-grinder-comparison
2020-10-08 16:38:30 +03:00
kwoyke be48134840 BAEL-4659: Upgrade Cucumber to 6.8.0 (#10115) 2020-10-02 19:28:05 +02:00
johnA1331 e9059bbb72 Update README.md 2020-10-02 13:29:42 +08:00
johnA1331 c1c380094c Update README.md 2020-10-02 13:26:20 +08:00
Loredana Crusoveanu 11818a04a3 Merge pull request #10029 from Maiklins/Java-2136-update-jackson-version-in-main-pom
Java-2136 update jackson version in main pom
2020-09-30 10:53:54 +03:00
Daniel Taylor d7fc3796d7 change "Aborted" to "Failed" under testFailed() 2020-09-29 16:37:05 -06:00
Loredana Crusoveanu 35a9131a72 Merge pull request #10083 from johnA1331/master
BAEL-27981 - add links to github-baeldung articles
2020-09-25 16:08:31 +03:00
bfontana 71623e7880 Merge pull request #10074 from eugenp/bfontana/BAEL-4337
BAEL-4337 - Conditionally ignoring or running tests in JUnit 4
2020-09-23 21:20:30 -03:00
johnA1331 2ba94bd154 Create README.md 2020-09-24 03:34:17 +08:00
Bruno Fontana 9a8f92de76 Fixing formatting issues. 2020-09-22 20:54:25 -03:00
Bruno Fontana 9f51e1c6e5 Assume Class examples redone. 2020-09-22 18:21:24 -03:00
Krzysiek d51a8319c6 JAVA-2977: Get rid of the unused spring*boot* properties 2020-09-21 21:15:03 +02:00
Loredana 4a7cde7d32 Merge branch 'master' of https://github.com/eugenp/tutorials 2020-09-18 12:04:36 +03:00
Jonathan Cook f6adcd0cb3 BAEL-4437 - System Rules (#10047)
Co-authored-by: Jonathan Cook <jcook@sciops.esa.int>
2020-09-17 14:22:49 -07:00
johnA1331 5ae7a913cf Update README.md 2020-09-16 23:48:50 +08:00
johnA1331 f9cd2c3807 Update README.md 2020-09-16 23:01:10 +08:00
johnA1331 1d9cf597d8 Update README.md 2020-09-16 22:57:59 +08:00
mikr 6927cc7237 Java-2136 Use Jackson version from main pom in all other applicable modules 2020-09-14 13:11:59 +02:00
kwoyke c3cd93fcdb JAVA-2563: Upgrade Spring Boot version to 2.3.3.RELEASE (#9985)
* JAVA-2563: Upgrade Spring Boot version to 2.3.3.RELEASE

* JAVA-2563: Downgrade spring-cloud-connectors-heroku to Spring Boot 2.2.6.RELEASE

* JAVA-2563: Add joda-time version

* JAVA-2563: Add spring-boot-starter-validation dependency

* JAVA-2563: Add spring-boot-starter-validation dependency

* JAVA-2563: Add spring-boot-starter-validation dependency

* JAVA-2563: Add spring-boot-starter-validation dependency

* JAVA-2563: Add spring-boot-starter-validation dependency

* JAVA-2563: Use MongoClients factory instead of MongoClient directly

* JAVA-2563: Downgrade spring-5-data-reactive to Spring Boot 2.2.6.RELEASE

* JAVA-2563: Switch back to default bootstrap mode for JPA

* JAVA-2563: Add spring-boot-starter-validation dependency

* JAVA-2563: Switch from ServerHttpRequest to ServerWebExchange interface

* JAVA-2563: Use OutputCaptureRule instead of OutputCapture

* JAVA-2563: Add spring-boot-starter-validation dependency

* JAVA-2563: Add spring-boot-starter-validation dependency

* JAVA-2563: Add spring-boot-starter-validation dependency

* JAVA-2563: Fix Jackson dependency

* JAVA-2563: Fix ManualEmbeddedMongoDbIntegrationTest

* JAVA-2563: Replace validation-api with spring-boot-starter-validation

* JAVA-2563: Fix usage of deprecated getErrorAttributes method

* JAVA-2563: Downgrade spring-data-cassandra-reactive to Spring Boot 2.2.6.RELEASE

* JAVA-2563: Set spring.datasource.generate-unique-name to false in spring-session-jdbc
2020-09-11 18:19:02 +05:30
bfontana ed8b77a375 Merge pull request #9948 from meysam/master
BAEL-4336 @BeforeAll and @AfterAll Methods as a non-static
2020-09-10 20:06:11 -03:00
Meysam Tamkin d994a5bdbf Fix it some changes 2020-09-07 13:35:07 +04:30
fanatixan 74efd2530e added code snippets for bael-4554 (#9979) 2020-09-06 19:13:25 -07:00
Stephane Landelle 7c41e37829 Remove the unfair 1 second pauses between requests
Those pauses don't exist in the JMeter test. They just artificially reduce the Gatling test's throughput.
2020-09-06 23:37:51 +02:00
Stephane Landelle a3626ba16c Add missing optional option on the check that captures the reward
This shouldn't be an error, it's an expected situation as described in the article.
2020-09-06 23:34:37 +02:00
Stephane Landelle b2643fc0dd Use ThreadLocalRandom instead of Random which is synchronized 2020-09-06 23:33:17 +02:00
Stephane Landelle bbdce526c7 Fix random cust id generation to reduce collisions
The current range causes lots of collisions and the application doesn't handle them gracefully, causing lots of exceptions to get logged and hamerring performance.

Use 100,000 like the JMeter test, see https://github.com/slandelle/tutorials/blob/master/testing-modules/load-testing-comparison/src/main/resources/scripts/JMeter/Test%20Plan.jmx#L203
2020-09-06 23:32:19 +02:00
Stephane Landelle eed6c93543 Fix dynamic parameter
Wrong Gatling usage: randCustId() was only called once. One needs to pass a function.
2020-09-06 23:29:31 +02:00
Meysam Tamkin 3146226399 Fix it some changes 2020-09-03 10:16:45 +04:30
Mona Mohamadinia 25b1749308 BAEL-4530: A Guide to @DynamicPropertySource in Spring (#9877)
* A Guide to @DynamicPropertySource in Spring

* Moving to a new module

* Reverting the Changes in the original module
2020-08-31 16:43:13 +01:00
Jonathan Cook 50563c7f63 Merge pull request #9854 from vishal1023/master
AssertEquals 2 Lists ignore order
2020-08-30 21:48:51 +02:00
Meysam Tamkin d8d2ecc4b4 Add some changes 2020-08-30 19:59:24 +04:30
Vishal aa223e69ea Add tests for AssertJ example and update assertj-core dependency version. 2020-08-23 10:35:43 +05:30
johnA1331 308bd8998b Update README.md 2020-08-20 13:07:18 +08:00
Vishal 3cbfd383ed Refactor | Add common formatting, remove comments, update test class name,follow test method naming convention and use Junit5 2020-08-17 18:06:30 +05:30
Loredana Crusoveanu db4c926b1a Merge pull request #9773 from eugenp/BAEL-16668-v2
Bael 16668 v2
2020-08-13 17:13:32 +03:00
Jonathan Cook bc2352684a BAEL-4341 - Add AfterEach annotation instead of BeforeEach on tearDown
method
2020-08-13 09:12:53 +02:00
Vishal 6a2fcd54c3 Add unit test to assert two list equality without considering order of elements in it. 2020-08-12 09:57:39 +05:30
kwoyke 6889e238ff BAEL-3415: Get rid of the MockitoAnnotations.initMocks (#9787) 2020-07-30 07:50:21 +02:00
davidmartinezbarua 7e22f6a1bb Merge pull request #9729 from developerDiv/argumentcaptor
BAEL-4261 - ArgumentMatcher with Stubbing
2020-07-29 23:56:33 -03:00
Loredana 2dbb667128 article was moved to mockito-2; remove duplicate methods from mockito module 2020-07-27 12:01:55 +03: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
johnA1331 cb9e7920a0 Update README.md 2020-07-23 22:11:49 +08:00
johnA1331 2bc4c93e7b Update README.md 2020-07-23 21:06:51 +08: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
bfontana 2d8bc57689 Merge pull request #9648 from dpgarrett/danielg/conditionally-ignoring-tests-in-junit
BAEL-4337 Conditionalling ignoring tests in JUnit 4
2020-07-16 21:09:58 -03:00
Jonathan Cook a8dac80752 BAEL-4341 - JUnit test for System.out.println() (#9694)
* BAEL-4198 - Fix Selenium Live Tests

* BAEL-4198

* BAEL-4024 - Taking Screenshots with Selenium WebDriver

* BAEL-4341 - JUnit test for System.out.println()

Co-authored-by: Jonathan Cook <jcook@sciops.esa.int>
2020-07-13 18:46:32 -07:00
Daniel Garrett 1145918e22 fix: replace * imports with single imports: 2020-07-13 10:07:50 +01:00
Josh Cummings 8d5e33fae6 Merge pull request #9685 from amit2103/JAVA-2119
removed RC versions from pom dependency
2020-07-11 18:12:34 -06:00
amit.pandey c78d9c867d removed RC versions from pom dependency 2020-07-12 03:00:28 +05:30
amit.pandey 0716abb5e7 used properties defined in parent pom 2020-07-12 00:06:27 +05:30
Daniel Garrett ecff38abf6 feat: add test for assumeFalse 2020-07-07 16:14:30 +01:00
Loredana Crusoveanu 7ab2f437ee Revert "BAEL-4134" 2020-07-07 14:18:10 +03:00
Daniel Garrett 278b5f8efa fix: rename test 2020-07-06 11:15:35 +01:00
Daniel Garrett e955c836ad feat: add class to conditionally ignore unit tests 2020-07-06 11:07:36 +01:00
Jonathan Cook eb75cf11fc BAEL-4198 - Fix Selenium Testing module (#9611)
* BAEL-4198 - Fix Selenium Live Tests

* BAEL-4198

Co-authored-by: Jonathan Cook <jcook@sciops.esa.int>
2020-06-29 14:13:26 -07:00
johnA1331 2e7d6c9341 Update README.md 2020-06-23 16:51:32 +08:00
Chirag Dewan 6cfecc10eb BAEL3923 Upgrading Powermock version to 2.0,7 2020-06-20 14:11:44 +05:30
johnA1331 5ba1cd0b0f Merge branch 'master' into master 2020-06-14 10:42:24 +08:00
johnA1331 d7f3c730c6 Update README.md 2020-06-09 19:29:55 +08:00
johnA1331 2e2496fb93 Create README.md 2020-06-09 19:09:05 +08:00
KevinGilmore c122add13e Bael 4026 (#9433)
* BAEL-3336 BAEL-3058 add links

* BAEL-3319: add link

* BAEL-3284: add link

* BAEL-3198: add link to article

* BAEL-3479: add link to article

* BAEL-3485: add article link

* SCALA-38: move to new package and add link back to article

* SCALA-38: add imports back into unit test

* BAEL-3908: add link back to article

* BAEL-2893 BAEL-3927 add link back to article

* BAEL-4026: update README.md
2020-06-03 22:20:43 -05:00
Loredana Crusoveanu 5d8b4614c4 Merge pull request #9122 from sureshnath/master
tested the code with latest testng version 7.1.0
2020-05-24 15:24:34 +03:00
Loredana Crusoveanu b482fdf9a6 Merge pull request #9026 from atanasg/patch-1
Fix palindrome unit test
2020-05-24 15:03:02 +03:00
rpvilao c395a43472 Merge pull request #9252 from MajewskiKrzysztof/BAEL-3916
BAEL-3916
2020-05-19 16:54:25 +02:00
Krzysztof Majewski 93809a3441 update package name 2020-05-19 08:17:45 +02:00
johnA1331 7eab1879e3 Update README.md 2020-05-12 16:42:44 +08:00
Krzysztof Majewski 973cd24906 update test name 2020-05-08 14:07:07 +02:00
Krzysztof Majewski d27bcf564f update test name 2020-05-08 14:02:17 +02:00
Krzysztof Majewski 6b28cb46d0 BAEL-3916 2020-05-06 13:54:59 +02:00
johnA1331 424fecc7d9 Update README.md 2020-05-05 17:23:23 +08:00
johnA1331 e232346eb9 Update README.md 2020-05-05 17:08:45 +08:00
marc06210 b3f1413445 BAEL-3960 (#9070)
Bael-3960, asserting log messages with junit code.
2020-05-04 17:03:21 +01:00
KevinGilmore d090c9b059 BAEL-2893 BAEL-3927 update README files (#9171)
* BAEL-3336 BAEL-3058 add links

* BAEL-3319: add link

* BAEL-3284: add link

* BAEL-3198: add link to article

* BAEL-3479: add link to article

* BAEL-3485: add article link

* SCALA-38: move to new package and add link back to article

* SCALA-38: add imports back into unit test

* BAEL-3908: add link back to article

* BAEL-2893 BAEL-3927 add link back to article
2020-04-24 22:28:04 -05: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
Josh Cummings 43c715d949 Merge pull request #9133 from amit2103/JAVA-1278-1
Java 1278 1
2020-04-18 22:58:12 -06:00
amit.pandey 0f851a1d84 update source code to sync with article 2020-04-18 20:57:13 +05:30
Suresh Jaganathan 9105107048 tested the code with latest testng version 7.1.0 2020-04-17 12:47:32 +01:00