Commit Graph

435 Commits

Author SHA1 Message Date
panos-kakos 9d4f599a1a [JAVA-16834] Added test case (#13192)
Co-authored-by: panagiotiskakos <panagiotis.kakos@libra-is.com>
2023-01-04 20:59:16 +05:30
collaboratewithakash c67ef1932c backlink fixed 2022-12-24 17:12:50 +05:30
edizor 769406aa32 Update README.md
[skip ci]
2022-12-22 22:06:38 +08:00
freelansam 456652e02b JAVA-16563: Fix formatting of POMs (#13175) 2022-12-20 22:37:54 +05:30
edizor 7fdb06b40e Update README.md
[skip ci]
2022-12-15 15:49:49 +08:00
Carlos Chacin 78124d60dd [BAEL-5976]: Extract Values using AssertJ in Java (#13105)
JIRA: https://jira.baeldung.com/browse/BAEL-5976
2022-12-13 16:55:12 -08:00
panos-kakos 0264bb82c8 Java 13914 (#13083)
* [JAVA-13914] Replaced Junit4 annotations with Junit5

* [JAVA-13914] Replaced Junit4 annotations with Junit5

* [JAVA-13914] Fixed test

* [JAVA-13914] Clean up

Co-authored-by: panagiotiskakos <panagiotis.kakos@libra-is.com>
2022-12-08 19:47:51 +05:30
kwoyke 85fded9b10 Merge pull request #13118 from freelansam/JAVA-16260
JAVA-16301: Check Article Code Matches GitHub
2022-12-07 20:59:38 +01:00
AndiCover 2ea3448efa Bael 4555 selenium tab switching (#13131)
* BAEL-4555 Added Selenium TabHelper and tab switching live tests

* BAEL-4555 Upgraded Selenium to 4.6.0

* BAEL-4555 fixed naming

Co-authored-by: andicover <w&j3$d9NEcfAQTXfxju9>
2022-12-05 16:08:01 -08:00
collaboratewithakash bcfa1ee452 Update README.md 2022-12-03 16:50:12 +05:30
freelansam 998415cd47 JAVA-16301: Check Article Code Matches GitHub 2022-12-02 18:45:30 +05:30
Haroon Khan cbacca44c9 [JAVA-15774] Update JUnit code 2022-11-26 22:21:37 +00:00
edizor d6a3dd20f3 Update README.md
[skip ci]
2022-11-25 15:41:11 +08:00
edizor c9d99174bb Update README.md
[skip ci]
2022-11-25 14:29:53 +08:00
freelansam 5bfbf38f59 JAVA-15409: Fix formatting of POMs (#12992) 2022-11-18 00:26:06 +05:30
Mateusz Szablak b55616cdb8 BAEL-5778 @RunWith(SpringRunner.class) vs @RunWith(MockitoJUnitRunner.class) (#12991) 2022-11-14 18:03:34 +05:30
Loredana Crusoveanu 926d7d2da8 JAVA-15810 add clarification about deleted files 2022-11-14 12:40:46 +02:00
edizor 1ab08e2bc7 Update README.md
[skip ci]
2022-11-11 09:58:17 +08:00
edizor 2987e954fe Update README.md
[skip ci]
2022-11-11 09:35:38 +08:00
edizor ec240863d7 Update README.md
[skip ci]
2022-11-11 09:10:03 +08:00
AndiCover 50f2c39544 Selenium error (#12924)
* BAEL-5010 added manual and automated selenium setup tests

* BAEL-5010 added manual and automated selenium setup tests

Co-authored-by: aschoeng <andreas.schoengruber@mic-cust.com>
2022-11-09 09:31:14 +05:30
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
Abhinav Pandey aeac3c1d3c BAEL-5846 - Testing methods that call System.exit (#12952)
* BAEL-5846 - Testing methods that call System.exit

* BAEL-5846 - Testing methods that call System.exit - JMockit implementation

* BAEL-5846 - Testing methods that call System.exit - Changing test case names

* BAEL-5846 - Testing methods that call System.exit - changing test names

* BAEL-5777 - Mocking a singleton with Mockito - review incorporation
2022-11-06 15:39:05 +05:30
edizor 448a318036 Update README.md
[skip ci]
2022-11-02 21:12:34 +08:00
panos-kakos c97bebc822 [JAVA-15438] Added example to showcase @Generated on constructors (#12946)
Co-authored-by: panagiotiskakos <panagiotis.kakos@libra-is.com>
2022-10-29 21:18:12 +05:30
Mahn00rMalik fad70d5b4e BAEL-5779: assertAll vs Multiple Assertions in JUnit5 (#12819)
* Deep vs Shallow copy of an object in java

* update indentaions

* Create a BMI Caclualtor in Java

* Create a BMI Caclualtor in Java

* Delete unused packages

* BAEL-5708: Create a BMI Calculator in Java

* BAEL-5708: Create a BMI Calculator in Java

* BAEL-5767:Writing an ArrayList of Strings into a Text File

* BAEL-5767:Writing an ArrayList of Strings into a Text File

* Deleting files from core-java-io

* BAEL-5767: Writing an ArrayList of Strings into a Text File

* Removed files from core-java-11-2

* BAEL-5767:Writing an ArrayList of Strings into a Text File

* BAEL-5767:Writing an ArrayList of Strings into a Text File

* BAEL-5767:Writing an ArrayList of Strings into a Text File

* BAEL-5779:assertAll vs Multiple Assertions in JUnit5

* BAEL-5779:assertAll vs Multiple Assertions in JUnit5

* BAEL-5779:assertAll vs Multiple Assertions in JUnit5

* BAEL-5779:assertAll vs Multiple Assertions in JUnit5
2022-10-29 11:42:46 +01:00
edizor 4945fbb68d Update README.md 2022-10-26 22:23:02 +08:00
Eugene Kovko 06ee77d7df fix: Typo in the version property (#12884) 2022-10-18 14:36:35 -07:00
Eugene Kovko 6da922c20a BAEL-5760: Creating a separate mocks-2 module (#12882) 2022-10-16 15:10:50 -07:00
Eugene Kovko 88c31bab42 BAEL-5760: Change test names to BDD format (#12856)
Co-authored-by: Loredana Crusoveanu <lore.crusoveanu@gmail.com>
2022-10-13 12:47:24 -07:00
collaboratewithakash b2eabb8250 Update README.md 2022-09-23 14:23:53 +05:30
collaboratewithakash ef904c707a Update README.md 2022-09-23 14:19:13 +05:30
freelansam dc1815c10c JAVA-14673 - Fix formatting of POMs (#12722)
* JAVA-14673 - Fix formatting of POMs

* cleanup
2022-09-13 21:22:49 +05:30
panos-kakos cb8e969f17 [JAVA-13964] Upgrade javax-servlet-api to 4.0.1 (#12683)
Co-authored-by: panagiotiskakos <panagiotis.kakos@libra-is.com>
Co-authored-by: Dhawal Kapil <dhawalkapil@gmail.com>
2022-09-10 00:01:01 +05:30
Asjad J aaa85a4010 Update README.md
changed the expired link https://www.baeldung.com/mockito-2-java-8 to correct link https://www.baeldung.com/mockito-java-8
2022-09-04 06:11:07 +05:00
Asjad J 6b1e4f6f68 Update README.md
changed the expired link https://www.baeldung.com/mockito-2-lazy-verification to correct link https://www.baeldung.com/mockito-lazy-verification
2022-09-04 06:07:40 +05:00
Loredana Crusoveanu e7c4294e3e Merge pull request #12661 from dkapil/task/JAVA-13636
Task/java 13636
2022-08-31 10:17:27 +03:00
Dhawal Kapil 523e01a343 JAVA-13636 Minor cleanup 2022-08-28 20:42:59 +05:30
Dhawal Kapil bf888fc637 JAVA-13636 Updated Junit5 article 2022-08-28 19:29:37 +05:30
anuragkumawat 98c81c1d08 JAVA-13746 testing-modules parallel-tests-junit not running in parallel (#12655) 2022-08-28 18:42:36 +05:30
Haroon Khan b9789c23f0 [JAVA-13976] Upgrade Spring Boot to 2.7.2 (#12603)
* [JAVA-13976] Upgrade Spring Boot to 2.7.2

* [JAVA-13976] Fix failing test due to incorrect Jackson version
2022-08-22 22:47:32 +05:30
Dhawal Kapil 0406bde4e3 Merge branch 'master' of https://github.com/eugenp/tutorials into
task/JAVA-13630

# Conflicts:
#	persistence-modules/fauna/pom.xml
2022-08-11 00:03:03 +05:30
Dhawal Kapil 92d27acdb3 JAVA-13634 Cleanup 2022-08-10 23:47:50 +05:30
Dhawal Kapil 143d5f6eed JAVA-13630 Fixed/Clean Imports 2022-08-10 23:08:14 +05:30
Dhawal Kapil 595aa8fe3b JAVA-13632 Updated code for Mocking Void Methods with Mockito 2022-08-09 22:41:27 +05:30
anuragkumawat eb91f373ce JAVA-13606 Remove mention of Mockito 2 as a separate library (#12571) 2022-08-06 18:35:30 +05:30
Dhawal Kapil 717e3fafdb JAVA-13629 More fixes and updates (#12566) 2022-08-05 01:19:05 +05:30
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