Commit Graph

742 Commits

Author SHA1 Message Date
anuragkumawat
75abf5a2d0 JAVA-13606 Remove mention of Mockito 2 as a separate library (#12571) 2022-08-06 18:35:30 +05:30
Dhawal Kapil
16c395d695 JAVA-13629 More fixes and updates (#12566) 2022-08-05 01:19:05 +05:30
kwoyke
ca0748794d Merge pull request #12538 from dkapil/task/JAVA-13629
Task/java 13629
2022-07-31 22:15:33 +02:00
kwoyke
629500bd8e Merge pull request #12536 from dkapil/task/JAVA-13628
Task/java 13628
2022-07-31 22:13:25 +02:00
Dhawal Kapil
c75fb84a22 JAVA-13627 Updated code to use assertThatThrownBy instead of assertThrows 2022-07-31 21:57:45 +05:30
Dhawal Kapil
0d03cade4e JAVA-13629 Added missing tests from Mockito ArgumentMatchers article 2022-07-26 23:31:25 +05:30
Dhawal Kapil
e0eaadb180 JAVA-13628 Minor upgrades 2022-07-26 18:38:10 +05:30
Dhawal Kapil
c7f661b366 JAVA-13627 Removed MockitoMockIntegrationTest as it was a duplicate, other cleanup and API upgrades 2022-07-26 18:23:50 +05:30
Dhawal Kapil
1ba4351902 JAVA-12033 Upgraded assertion libraries and minor cleanup 2022-07-26 12:58:41 +05:30
Dhawal Kapil
bf70fa3fc6 JAVA-13625 Updated/upgraded Mockito Annotations Code 2022-07-26 12:41:56 +05:30
anuragkumawat
976e355b1f 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
be1a779d3e JAVA-12032 Added mockito-simple to testing-modules list 2022-07-15 17:54:12 +05:30
Dhawal Kapil
8c27a25ae1 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
98e1ded02a 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
a2148f2550 Merge pull request #12292 from eugenp/lor6-patch-2
Update ConditionalExecutionUnitTest.java
2022-06-30 16:53:13 +03:00
Azhwani
bc0f290d0e BAEL-4469: Update Introduction to Mockito AdditionalAnswers (#12267)
* init commit

* improve test cases
2022-06-05 17:26:59 +02:00
Loredana Crusoveanu
a037e8008e Update ConditionalExecutionUnitTest.java 2022-06-01 16:34:10 +03:00
Loredana Crusoveanu
95e8ee82ec 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
3c409920ff 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
080d38525e 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
d94cd0351a Merge pull request #12105 from Alex-Golub/study/assert-exception
JUnit5 conventions + code rearrangement
2022-05-27 21:18:24 +03:00
Loredana Crusoveanu
60674f2b14 Merge branch 'master' into study/junit5-intro 2022-05-27 21:16:59 +03:00
kwoyke
a4f670805f Merge pull request #12185 from freelansam/JAVA-11792
JAVA-11792: Fix formatting of POMs
2022-05-09 11:04:26 +02:00
kwoyke
dc8bc783a6 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
aeeedb6fe6 JAVA-11792: Fix formatting of POMs 2022-05-08 16:36:25 +05:30
kwoyke
79296aaa66 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
3fb782e9c6 JAVA-11777 Remove usage of deprecated JUnitPlatform.class in junit5-migration module 2022-04-30 22:18:43 +05:30
anuragkumawat
c6e29902d8 JAVA-11775 Remove usage of deprecated JUnitPlatform.class in junit-5-basics module 2022-04-30 21:49:57 +05:30
anuragkumawat
b74c2f1db4 JAVA-11775 Remove usage of deprecated JUnitPlatform.class in junit-5-basics module 2022-04-30 14:09:10 +05:30
Alex Golub
2842bfcf0c 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
b14ffd302a 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
cea3dac6ee JUnit5 test classes and methods should have default package visibility 2022-04-22 21:27:02 +03:00
Alex Golub
4342e78377 Simplify to assertNull(Object, String) 2022-04-21 11:50:34 +03:00
Alex Golub
afe41ad0da Add an explanation about why this test is skipped as value of @Disabled 2022-04-21 11:50:34 +03:00
Alex Golub
019df79222 Typos 2022-04-21 11:50:33 +03:00
Alex Golub
69bf5c8017 Explicitly create Supplier<String> to demonstrate use of assertNull(Object, Supplier<String>) method 2022-04-21 11:26:51 +03:00
Alex Golub
3057730a4d Code reformat 2022-04-21 11:07:21 +03:00
Alex Golub
182e938651 JUnit5 test classes and methods should have default package visibility 2022-04-21 11:06:23 +03:00
Alex Golub
34030c810a assertThat(T, Matcher<? super T>) Deprecated. Use org.hamcrest.MatcherAssert.assertThat() 2022-04-21 11:05:26 +03:00
Alex Golub
ebec80562c Method name typo 2022-04-21 10:30:44 +03:00
Alex Golub
cb11de0f0c Delete redundant curly braces when using single lambda statement 2022-04-21 10:30:28 +03:00
Alex Golub
79d31ebc1d JUnit5 test classes and methods should have default package visibility 2022-04-21 10:29:26 +03:00
Alex Golub
4b3b447695 Method name typo 2022-04-20 14:51:58 +03:00
Alex Golub
488631d4ba Statement lambda can be replaced with expression lambda 2022-04-20 14:51:58 +03:00
Alex Golub
a538beb16c Assertion arguments should be passed in the correct order 2022-04-20 14:51:58 +03:00
Alex Golub
429a713811 JUnit5 test classes and methods should have default package visibility 2022-04-20 14:51:58 +03:00
Alex Golub
c6ef576ef3 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
8bafc81847 Use the default package visibility and optimize imports 2022-04-20 13:50:30 +03:00
sampadawagde
6fa2fde296 fixed typo 2022-04-03 16:54:01 +05:30
kwoyke
3921fdbdb3 Merge pull request #11920 from freelansam/JAVA-10138
JAVA-10138 - Fix formatting of POMs
2022-03-14 15:00:17 +01:00