Commit Graph

383 Commits

Author SHA1 Message Date
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