From 60ff383f3c2529b4096915c5f5af59b49853b2a5 Mon Sep 17 00:00:00 2001 From: Erhard Pointl Date: Mon, 22 Jul 2019 21:34:39 +0200 Subject: [PATCH 01/20] Update current version to 3 (#44) --- _posts/2000-01-01-intro.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_posts/2000-01-01-intro.md b/_posts/2000-01-01-intro.md index 578ab15..0ba761e 100755 --- a/_posts/2000-01-01-intro.md +++ b/_posts/2000-01-01-intro.md @@ -24,7 +24,7 @@ style: center -### Current version is 2 +### Current version is 3 Still on Mockito 1.x? See [what's new in Mockito 2](https://github.com/mockito/mockito/wiki/What%27s-new-in-Mockito-2)! From 57106c95a3aac5a4961d2aa7f88b01100085c3cb Mon Sep 17 00:00:00 2001 From: Manuel Date: Fri, 9 Aug 2019 19:29:14 +0200 Subject: [PATCH 02/20] Fix release notes link (#45) Link to release3x branch --- _posts/2000-01-01-intro.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_posts/2000-01-01-intro.md b/_posts/2000-01-01-intro.md index 0ba761e..a9fe39f 100755 --- a/_posts/2000-01-01-intro.md +++ b/_posts/2000-01-01-intro.md @@ -28,7 +28,7 @@ style: center Still on Mockito 1.x? See [what's new in Mockito 2](https://github.com/mockito/mockito/wiki/What%27s-new-in-Mockito-2)! -See the [release notes page](https://github.com/mockito/mockito/blob/release/2.x/doc/release-notes/official.md) +See the [release notes page](https://github.com/mockito/mockito/blob/release/3.x/doc/release-notes/official.md) and [latest documentation](https://javadoc.io/page/org.mockito/mockito-core/latest/org/mockito/Mockito.html) (docs in javadoc.io are available 24h after release). From 8f259f8f58f1d0b30515a851c0ed4dfd6717eebf Mon Sep 17 00:00:00 2001 From: Max Zhu Date: Sat, 9 Nov 2019 22:02:02 +0800 Subject: [PATCH 03/20] Update javadoc.io links to improve navigation across different Mockito versions (#46) --- _posts/2000-01-01-intro.md | 2 +- _posts/2000-01-15-more.md | 24 ++++++++++++------------ _posts/2000-01-25-links.md | 2 +- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/_posts/2000-01-01-intro.md b/_posts/2000-01-01-intro.md index a9fe39f..8472d29 100755 --- a/_posts/2000-01-01-intro.md +++ b/_posts/2000-01-01-intro.md @@ -29,7 +29,7 @@ style: center Still on Mockito 1.x? See [what's new in Mockito 2](https://github.com/mockito/mockito/wiki/What%27s-new-in-Mockito-2)! See the [release notes page](https://github.com/mockito/mockito/blob/release/3.x/doc/release-notes/official.md) -and [latest documentation](https://javadoc.io/page/org.mockito/mockito-core/latest/org/mockito/Mockito.html) +and [latest documentation](https://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/Mockito.html) (docs in javadoc.io are available 24h after release). Older 1.x releases are available in [Central Repository](https://search.maven.org/artifact/org.mockito/mockito-core/1.10.19/jar) diff --git a/_posts/2000-01-15-more.md b/_posts/2000-01-15-more.md index a2c02ee..b59bff4 100755 --- a/_posts/2000-01-15-more.md +++ b/_posts/2000-01-15-more.md @@ -6,19 +6,19 @@ fa-icon: book ## More info -[Main reference documentation](http://javadoc.io/page/org.mockito/mockito-core/latest/org/mockito/Mockito.html) features: +[Main reference documentation](http://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/Mockito.html) features: -* [`mock()`](http://javadoc.io/page/org.mockito/mockito-core/latest/org/mockito/Mockito.html#mock-java.lang.Class-)/[`@Mock`](http://javadoc.io/page/org.mockito/mockito-core/latest/org/mockito/Mock.html): create mock - * optionally specify how it should behave via [`Answer`](http://javadoc.io/page/org.mockito/mockito-core/latest/org/mockito/stubbing/Answer.html)/[`MockSettings`](http://javadoc.io/page/org.mockito/mockito-core/latest/org/mockito/MockSettings.html) - * [`when()`](http://javadoc.io/page/org.mockito/mockito-core/latest/org/mockito/Mockito.html#when-T-)/[`given()`](http://javadoc.io/page/org.mockito/mockito-core/latest/org/mockito/BDDMockito.html#given-T-) to specify how a mock should behave - * If the provided answers don't fit your needs, write one yourself extending the [`Answer`](http://javadoc.io/page/org.mockito/mockito-core/latest/org/mockito/stubbing/Answer.html) interface -* [`spy()`](http://javadoc.io/page/org.mockito/mockito-core/latest/org/mockito/Mockito.html#spy-T-)/[`@Spy`](http://javadoc.io/page/org.mockito/mockito-core/latest/org/mockito/Spy.html): +* [`mock()`](http://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/Mockito.html#mock-java.lang.Class-)/[`@Mock`](http://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/Mock.html): create mock + * optionally specify how it should behave via [`Answer`](http://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/stubbing/Answer.html)/[`MockSettings`](http://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/MockSettings.html) + * [`when()`](http://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/Mockito.html#when-T-)/[`given()`](http://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/BDDMockito.html#given-T-) to specify how a mock should behave + * If the provided answers don't fit your needs, write one yourself extending the [`Answer`](http://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/stubbing/Answer.html) interface +* [`spy()`](http://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/Mockito.html#spy-T-)/[`@Spy`](http://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/Spy.html): partial mocking, real methods are invoked but still can be verified and stubbed -* [`@InjectMocks`](http://javadoc.io/page/org.mockito/mockito-core/latest/org/mockito/InjectMocks.html): automatically inject mocks/spies fields annotated with `@Spy` or `@Mock` -* [`verify()`](http://javadoc.io/page/org.mockito/mockito-core/latest/org/mockito/Mockito.html#verify-T-): to check methods were called with given arguments - * can use flexible argument matching, for example any expression via the [`any()`](http://javadoc.io/page/org.mockito/mockito-core/latest/org/mockito/ArgumentMatchers.html#any--) - * or capture what arguments were called using [`@Captor`](http://javadoc.io/page/org.mockito/mockito-core/latest/org/mockito/Captor.html) instead -* Try Behavior-Driven development syntax with [BDDMockito](http://javadoc.io/page/org.mockito/mockito-core/latest/org/mockito/BDDMockito.html) +* [`@InjectMocks`](http://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/InjectMocks.html): automatically inject mocks/spies fields annotated with `@Spy` or `@Mock` +* [`verify()`](http://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/Mockito.html#verify-T-): to check methods were called with given arguments + * can use flexible argument matching, for example any expression via the [`any()`](http://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/ArgumentMatchers.html#any--) + * or capture what arguments were called using [`@Captor`](http://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/Captor.html) instead +* Try Behavior-Driven development syntax with [BDDMockito](http://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/BDDMockito.html) * Use Mockito on Android, thanks to the team working on [dexmaker](https://github.com/crittercism/dexmaker) ## Remember @@ -28,7 +28,7 @@ fa-icon: book * Don't mock everything * Show love with your tests! -Click [here](http://javadoc.io/page/org.mockito/mockito-core/latest/org/mockito/Mockito.html) for more documentation and examples. +Click [here](http://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/Mockito.html) for more documentation and examples. All documentation lives in javadocs so you don’t need to visit that page too often. There is also a [RefCard](http://refcardz.dzone.com/refcardz/mockito). diff --git a/_posts/2000-01-25-links.md b/_posts/2000-01-25-links.md index a5e07c3..80a2505 100755 --- a/_posts/2000-01-25-links.md +++ b/_posts/2000-01-25-links.md @@ -21,7 +21,7 @@ fa-icon: link * [Rafael's daily java blog](http://mydailyjava.blogspot.fr/) ### Other project links -* [Latest documentation](http://javadoc.io/page/org.mockito/mockito-core/latest/org/mockito/Mockito.html) +* [Latest documentation](http://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/Mockito.html) * [Dzone Reference Card](http://refcardz.dzone.com/refcardz/mockito) * [Continuous integration server](http://travis-ci.org/mockito/mockito) * [What we are working on](https://waffle.io/mockito/mockito) From 3296eddd807b3580f7f5fa1662100f3e8174054d Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Fri, 6 Dec 2019 07:25:39 -0800 Subject: [PATCH 04/20] Fixes #47 : Reorganize for 3.x releases, reduce duplication (#48) Don't mention the current version in a section header. Badges should be sufficient, and they don't need manual update. Update repository links to the 3.x branch. Consolidate "Current version" and "Project status updates" sections into one "Project status" section. Avoid some duplication with "Contributions welcome". Update the twitter link, the logo image was broken. Use the "follow" button instead. Show "Still on Mockito 1.x?" in bold. Clarify the difference between 3.x and 2.x releases. Remove all forward looking statements about the next major release. They are hard to update by anyone but the core developers, and don't provide much value. --- _posts/2000-01-01-intro.md | 37 ++++++++++++++++++++----------------- 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/_posts/2000-01-01-intro.md b/_posts/2000-01-01-intro.md index 8472d29..abe2a7c 100755 --- a/_posts/2000-01-01-intro.md +++ b/_posts/2000-01-01-intro.md @@ -10,7 +10,7 @@ style: center
-[![Build Status](https://travis-ci.org/mockito/mockito.svg?branch=release/2.x)](https://travis-ci.org/mockito/mockito) +[![Build Status](https://travis-ci.org/mockito/mockito.svg?branch=release/3.x)](https://travis-ci.org/mockito/mockito) [![Coverage Status](https://img.shields.io/codecov/c/github/mockito/mockito.svg)](https://codecov.io/github/mockito/mockito) [![MIT License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/mockito/mockito/blob/master/LICENSE) @@ -24,35 +24,38 @@ style: center -### Current version is 3 +### Project status -Still on Mockito 1.x? See [what's new in Mockito 2](https://github.com/mockito/mockito/wiki/What%27s-new-in-Mockito-2)! +Please see the [release notes page](https://github.com/mockito/mockito/blob/release/3.x/doc/release-notes/official.md). -See the [release notes page](https://github.com/mockito/mockito/blob/release/3.x/doc/release-notes/official.md) -and [latest documentation](https://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/Mockito.html) -(docs in javadoc.io are available 24h after release). +Updates are announced via [Twitter](https://twitter.com/mockitojava) + +and [mailing list] Google Groups. -Older 1.x releases are available in [Central Repository](https://search.maven.org/artifact/org.mockito/mockito-core/1.10.19/jar) -, [Bintray](https://bintray.com/mockito/maven/mockito/1.10.19/view) and [javadoc.io](https://www.javadoc.io/doc/org.mockito/mockito-core/1.10.19) (documentation). +Mockito downloads and instructions for setting up Maven, Gradle and other build systems are available from the +[Central Repository](https://search.maven.org/artifact/org.mockito/mockito-core/) and +[Bintray](https://bintray.com/mockito/maven/mockito/). - -(why above ad?) +The documentation for all versions is available on +[javadoc.io](https://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/Mockito.html) +(the site is updated within 24 hours of the latest release). -### Project status updates +**Still on Mockito 1.x?** See [what's new in Mockito 2](https://github.com/mockito/mockito/wiki/What%27s-new-in-Mockito-2)! +Mockito 3.x requires Java 8, but otherwise doesn't introduce any breaking changes compared to the 2.x series. -Updates are announced via [Twitter](https://twitter.com/mockitojava) Twitter logo and [mailing list] Google Groups. + +(why above ad?) -After releasing Mockito 2 (see what's new) the team will continue to improve version 2.x for a short time, then focus on Mockito 3. -Please provide your feedback and suggestions for the scope of Mockito 3.x using the above two channels and GitHub issue tracker. -Mockito 3.x will target Java 8. ### Contributions welcome Fancy getting world-wide visibility and building up an eternal fame of an OSS contributor? +* Use the [latest version](https://github.com/mockito/mockito/releases)! Hack and experiment. +* Speak up at the [mailing list]. +* Report issues and suggest ideas on the [GitHub issue tracker](https://github.com/mockito/mockito/issues). * Help the [project site](https://github.com/mockito/mockito.github.io) look decent and match the quality of the library! -* [Contribute](https://github.com/mockito/mockito/blob/release/2.x/.github/CONTRIBUTING.md) a pull request! It is automatically released via state-of-art [continuous delivery automation](https://szczepiq.blogspot.com/2014_08_01_archive.html). -* Use latest version! Hack and experiment. Speak up at the [mailing list]. Report [issues and new features](https://github.com/mockito/mockito/issues). +* [Contribute](https://github.com/mockito/mockito/blob/release/3.x/.github/CONTRIBUTING.md) a pull request! It is automatically released via state-of-art [continuous delivery automation](https://szczepiq.blogspot.com/2014_08_01_archive.html). From 0bc4422a19452d9d0b38991372bf017df3e3d601 Mon Sep 17 00:00:00 2001 From: Moritz Reiter Date: Fri, 17 Apr 2020 17:10:46 +0200 Subject: [PATCH 05/20] Update 2000-01-02-why.md (#49) It's not possible to vote anymore because Stack Overflow locked the Q&A. --- _posts/2000-01-02-why.md | 1 - 1 file changed, 1 deletion(-) diff --git a/_posts/2000-01-02-why.md b/_posts/2000-01-02-why.md index 57249e2..1eb03d1 100755 --- a/_posts/2000-01-02-why.md +++ b/_posts/2000-01-02-why.md @@ -14,7 +14,6 @@ Read more about [features & motivations](https://github.com/mockito/mockito/wiki * Massive StackOverflow community voted Mockito the best mocking framework for java. Even though StackOverflow shuns questions that likely raise emotional debates the fact is [Mockito has the most votes](http://stackoverflow.com/questions/22697/whats-the-best-mock-framework-for-java). -You can add your vote, too! * Top 10 Java library across all libraries, not only the testing tools. In late 2013 there was an [analysis](http://blog.takipi.com/we-analyzed-30000-github-projects-here-are-the-top-100-libraries-in-java-js-and-ruby) From 948c096cd427c3ca071a0623d5b67d302f8e3d82 Mon Sep 17 00:00:00 2001 From: manan <61121701+mananvyas@users.noreply.github.com> Date: Mon, 20 Apr 2020 00:57:27 +0530 Subject: [PATCH 06/20] Fix Dzone Reference Card link (#50) --- _posts/2000-01-25-links.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_posts/2000-01-25-links.md b/_posts/2000-01-25-links.md index 80a2505..da1e038 100755 --- a/_posts/2000-01-25-links.md +++ b/_posts/2000-01-25-links.md @@ -22,7 +22,7 @@ fa-icon: link ### Other project links * [Latest documentation](http://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/Mockito.html) -* [Dzone Reference Card](http://refcardz.dzone.com/refcardz/mockito) +* [Dzone Reference Card](https://dzone.com/refcardz/mockito) * [Continuous integration server](http://travis-ci.org/mockito/mockito) * [What we are working on](https://waffle.io/mockito/mockito) From 8610db100120a36dc5d35a0c7e46f8b26553a1f2 Mon Sep 17 00:00:00 2001 From: rahulmlokurte <56769493+rahulmlokurte@users.noreply.github.com> Date: Mon, 20 Apr 2020 01:07:25 +0530 Subject: [PATCH 07/20] Fix Dzone Refcard link in more info (#51) --- _posts/2000-01-15-more.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_posts/2000-01-15-more.md b/_posts/2000-01-15-more.md index b59bff4..2472bf0 100755 --- a/_posts/2000-01-15-more.md +++ b/_posts/2000-01-15-more.md @@ -30,7 +30,7 @@ fa-icon: book Click [here](http://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/Mockito.html) for more documentation and examples. All documentation lives in javadocs so you don’t need to visit that page too often. -There is also a [RefCard](http://refcardz.dzone.com/refcardz/mockito). +There is also a [RefCard](https://dzone.com/refcardz/mockito). If you have suggestions, find documentation unclear, or find a bug, write to our [mailing list](http://groups.google.com/group/mockito). You can report feature requests and bugs in [GitHub](https://github.com/mockito/mockito/issues). From 04a43b082b70276fb46e5e2c1ed85144b530926c Mon Sep 17 00:00:00 2001 From: Nikhil Seth Date: Thu, 1 Apr 2021 00:46:26 +0530 Subject: [PATCH 08/20] Update deprecated Gradle Configuration and update version number (#53) --- _posts/2000-01-10-how.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_posts/2000-01-10-how.md b/_posts/2000-01-10-how.md index 4ecb37f..188ebda 100755 --- a/_posts/2000-01-10-how.md +++ b/_posts/2000-01-10-how.md @@ -12,7 +12,7 @@ With [Gradle](http://gradle.org) one can do: {% highlight Groovy %} repositories { jcenter() } -dependencies { testCompile "org.mockito:mockito-core:2.+" } +dependencies { testImplementation "org.mockito:mockito-core:3.+" } {% endhighlight %} Maven users can declare a [dependency on mockito-core](https://search.maven.org/search?q=g:org.mockito%20a:mockito-core). From 470e17247f5a395e9abfac4b45e247b0fb0a6902 Mon Sep 17 00:00:00 2001 From: Maferep <62344533+Maferep@users.noreply.github.com> Date: Fri, 4 Jun 2021 13:39:59 -0300 Subject: [PATCH 09/20] Remove references to bintray repository (#54) Removed links and mentions of the dead bintray repo and replaced them with working equivalents from maven.org. --- _posts/2000-01-10-how.md | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/_posts/2000-01-10-how.md b/_posts/2000-01-10-how.md index 188ebda..5365680 100755 --- a/_posts/2000-01-10-how.md +++ b/_posts/2000-01-10-how.md @@ -16,16 +16,12 @@ dependencies { testImplementation "org.mockito:mockito-core:3.+" } {% endhighlight %} Maven users can declare a [dependency on mockito-core](https://search.maven.org/search?q=g:org.mockito%20a:mockito-core). -Mockito is automatically published to [Bintray's jcenter](http://jcenter.bintray.com/org/mockito/mockito-core) -and synced to the Maven Central Repository. +Mockito publishes every change as a `-SNAPSHOT` version to a public [Sonatype repository](https://search.maven.org/artifact/org.mockito/mockito-core). Users doing manual dependency management can download the jars directly from -[Mockito's Bintray repository](https://bintray.com/mockito/maven/mockito-development/_latestVersion), -under the Files tab. +[Maven Central](https://repo1.maven.org/maven2/org/mockito/mockito-core/). -Legacy builds with manual dependency management can use 1.* "mockito-all" distribution. -It can be downloaded from Mockito's Bintray repository or Bintray's jcenter. -"mockito-all" distribution has been discontinued in Mockito 2.*. +Legacy builds with manual dependency management can use the [1.* "mockito-all" distribution](https://repo1.maven.org/maven2/org/mockito/mockito-all/). Said distribution has been discontinued in Mockito 2.\*. ## now you can verify interactions From a1cff2cce4817f715d72486aa01311b2aa137a84 Mon Sep 17 00:00:00 2001 From: Dominik Broj <19861998+thetric@users.noreply.github.com> Date: Tue, 8 Jun 2021 21:38:14 +0200 Subject: [PATCH 10/20] Update the release notes page link (#55) --- _posts/2000-01-01-intro.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_posts/2000-01-01-intro.md b/_posts/2000-01-01-intro.md index abe2a7c..2de1527 100755 --- a/_posts/2000-01-01-intro.md +++ b/_posts/2000-01-01-intro.md @@ -26,7 +26,7 @@ style: center ### Project status -Please see the [release notes page](https://github.com/mockito/mockito/blob/release/3.x/doc/release-notes/official.md). +Please see the [release notes page](https://github.com/mockito/mockito/releases). Updates are announced via [Twitter](https://twitter.com/mockitojava) From ccd1d1b416742796907e8a29402eeaabebeee83d Mon Sep 17 00:00:00 2001 From: Keyno Date: Mon, 14 Jun 2021 20:15:04 +0900 Subject: [PATCH 11/20] Remove bintray references from intro page (#56) Co-authored-by: Tim van der Lippe --- _posts/2000-01-01-intro.md | 4 +--- _posts/2000-01-20-who.md | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/_posts/2000-01-01-intro.md b/_posts/2000-01-01-intro.md index 2de1527..c577b8a 100755 --- a/_posts/2000-01-01-intro.md +++ b/_posts/2000-01-01-intro.md @@ -14,7 +14,6 @@ style: center [![Coverage Status](https://img.shields.io/codecov/c/github/mockito/mockito.svg)](https://codecov.io/github/mockito/mockito) [![MIT License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/mockito/mockito/blob/master/LICENSE) -[![Bintray](https://api.bintray.com/packages/mockito/maven/mockito-development/images/download.svg)](https://bintray.com/mockito/maven) [![Maven Central](https://img.shields.io/maven-central/v/org.mockito/mockito-core.svg)](https://search.maven.org/search?q=g:org.mockito%20AND%20a:mockito-core&core=gav)
@@ -33,8 +32,7 @@ Updates are announced via [Twitter](https://twitter.com/mockitojava) and [mailing list] Google Groups. Mockito downloads and instructions for setting up Maven, Gradle and other build systems are available from the -[Central Repository](https://search.maven.org/artifact/org.mockito/mockito-core/) and -[Bintray](https://bintray.com/mockito/maven/mockito/). +[Central Repository](https://search.maven.org/artifact/org.mockito/mockito-core/). The documentation for all versions is available on [javadoc.io](https://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/Mockito.html) diff --git a/_posts/2000-01-20-who.md b/_posts/2000-01-20-who.md index 7a6a4e7..62e5d5d 100755 --- a/_posts/2000-01-20-who.md +++ b/_posts/2000-01-20-who.md @@ -19,8 +19,8 @@ Friends who contributed to Mockito (apologize if I missed somebody): **Pascal Schumacher**, **Christian Schwartz**, **Igor Czechowski**, **Patric Fornasier**, **Jim Barritt**, **Felix Leipold**, **Liz Keogh**, **Dan North**, **Bartosz Bańkowski**, **David Wallace**. -[Travis CI](https://travis-ci.org/mockito/mockito) and [Bintray](https://bintray.com/mockito/maven/mockito) are used to facilitate continuous delivery. -Both tools are great. Thank you Travis, thank you Bintray! +[GitHub actions](https://github.com/mockito/mockito/actions) and [Shipkit](http://shipkit.org) are used to facilitate continuous delivery. +Both tools are great. Thank you GitHub, thank you Shipkit! * Thanks to **Éric Lefevre-Ardant** for his long running and continuous support on the mailing-list * Thanks to **Erik Ramfelt**, and **Steve Christou** for the Jenkins server that was used originally for CI. From e7e4f42aa2ae3aa956de528e449bf79f800dc96b Mon Sep 17 00:00:00 2001 From: Lars Vogel Date: Tue, 10 Aug 2021 12:47:38 +0200 Subject: [PATCH 12/20] Replace jcenter() reference with Maven central (#57) jcenter has been retired therefore we should update the example --- _posts/2000-01-10-how.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_posts/2000-01-10-how.md b/_posts/2000-01-10-how.md index 5365680..ff57fa2 100755 --- a/_posts/2000-01-10-how.md +++ b/_posts/2000-01-10-how.md @@ -11,7 +11,7 @@ on "mockito-core" library using your favorite build system. With [Gradle](http://gradle.org) one can do: {% highlight Groovy %} -repositories { jcenter() } +repositories { mavenCentral() } dependencies { testImplementation "org.mockito:mockito-core:3.+" } {% endhighlight %} From e58dc1140d75fe760b4502c46ec841b5ce77d89b Mon Sep 17 00:00:00 2001 From: Andrei Solntsev Date: Mon, 19 Dec 2022 21:14:01 +0200 Subject: [PATCH 13/20] Add`mock()` to examples (#59) This method is available since 4.10.0 --- _posts/2000-01-10-how.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/_posts/2000-01-10-how.md b/_posts/2000-01-10-how.md index ff57fa2..0d2304c 100755 --- a/_posts/2000-01-10-how.md +++ b/_posts/2000-01-10-how.md @@ -30,6 +30,8 @@ import static org.mockito.Mockito.*; // mock creation List mockedList = mock(List.class); +// or even simpler with Mockito 4.10.0+ +// List mockedList = mock(); // using mock object - it does not throw any "unexpected interaction" exception mockedList.add("one"); @@ -45,6 +47,8 @@ verify(mockedList).clear(); {% highlight Java %} // you can mock concrete classes, not only interfaces LinkedList mockedList = mock(LinkedList.class); +// or even simpler with Mockito 4.10.0+ +// LinkedList mockedList = mock(); // stubbing appears before the actual execution when(mockedList.get(0)).thenReturn("first"); From 5f39ff236507796ba18baa2fe6b8c538b9b58b88 Mon Sep 17 00:00:00 2001 From: Szczepan Faber Date: Thu, 15 Feb 2024 11:54:25 -0600 Subject: [PATCH 14/20] Update CNAME --- CNAME | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CNAME b/CNAME index a45cf56..9dc2896 100644 --- a/CNAME +++ b/CNAME @@ -1 +1 @@ -site.mockito.org \ No newline at end of file +mockito.org \ No newline at end of file From d352339d23c29e200d915ac794b827d972d391c0 Mon Sep 17 00:00:00 2001 From: Szczepan Faber Date: Thu, 15 Feb 2024 11:56:10 -0600 Subject: [PATCH 15/20] Delete CNAME --- CNAME | 1 - 1 file changed, 1 deletion(-) delete mode 100644 CNAME diff --git a/CNAME b/CNAME deleted file mode 100644 index 9dc2896..0000000 --- a/CNAME +++ /dev/null @@ -1 +0,0 @@ -mockito.org \ No newline at end of file From 8b4e58e79c5eabdd2e73559b0316e45ae6c31a47 Mon Sep 17 00:00:00 2001 From: Szczepan Faber Date: Thu, 15 Feb 2024 12:30:06 -0600 Subject: [PATCH 16/20] Create CNAME --- CNAME | 1 + 1 file changed, 1 insertion(+) create mode 100644 CNAME diff --git a/CNAME b/CNAME new file mode 100644 index 0000000..a45cf56 --- /dev/null +++ b/CNAME @@ -0,0 +1 @@ +site.mockito.org \ No newline at end of file From edbd7df8b7fdd3c638ee88564999f3a95be4bc30 Mon Sep 17 00:00:00 2001 From: Tim van der Lippe Date: Sat, 1 Mar 2025 15:54:18 +0100 Subject: [PATCH 17/20] Remove reference to Twitter We no longer use that account to post updates. --- _posts/2000-01-01-intro.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/_posts/2000-01-01-intro.md b/_posts/2000-01-01-intro.md index c577b8a..ee8392a 100755 --- a/_posts/2000-01-01-intro.md +++ b/_posts/2000-01-01-intro.md @@ -27,9 +27,7 @@ style: center Please see the [release notes page](https://github.com/mockito/mockito/releases). -Updates are announced via [Twitter](https://twitter.com/mockitojava) - -and [mailing list] Google Groups. +Updates are announced via our [mailing list] Google Groups. Mockito downloads and instructions for setting up Maven, Gradle and other build systems are available from the [Central Repository](https://search.maven.org/artifact/org.mockito/mockito-core/). From 5245e14bbb680e2ddea9edfc4c569eafb9f4a18b Mon Sep 17 00:00:00 2001 From: Taeik Lim Date: Tue, 1 Apr 2025 16:07:12 +0900 Subject: [PATCH 18/20] Update version to 5.+ in dependencies section (#65) Signed-off-by: Taeik Lim --- _posts/2000-01-10-how.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_posts/2000-01-10-how.md b/_posts/2000-01-10-how.md index 0d2304c..c1222ef 100755 --- a/_posts/2000-01-10-how.md +++ b/_posts/2000-01-10-how.md @@ -12,7 +12,7 @@ With [Gradle](http://gradle.org) one can do: {% highlight Groovy %} repositories { mavenCentral() } -dependencies { testImplementation "org.mockito:mockito-core:3.+" } +dependencies { testImplementation "org.mockito:mockito-core:5.+" } {% endhighlight %} Maven users can declare a [dependency on mockito-core](https://search.maven.org/search?q=g:org.mockito%20a:mockito-core). From fc4f61c04cdaec07682a22908c9f4f93a8317456 Mon Sep 17 00:00:00 2001 From: Thach Le Date: Wed, 23 Apr 2025 23:02:35 +0700 Subject: [PATCH 19/20] Add module to JavaDoc URL (#66) Fixes mockito/mockito#3641 --- _posts/2000-01-01-intro.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_posts/2000-01-01-intro.md b/_posts/2000-01-01-intro.md index ee8392a..ece742f 100755 --- a/_posts/2000-01-01-intro.md +++ b/_posts/2000-01-01-intro.md @@ -33,7 +33,7 @@ Mockito downloads and instructions for setting up Maven, Gradle and other build [Central Repository](https://search.maven.org/artifact/org.mockito/mockito-core/). The documentation for all versions is available on -[javadoc.io](https://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/Mockito.html) +[javadoc.io](https://javadoc.io/doc/org.mockito/mockito-core/latest/org.mockito/org/mockito/Mockito.html) (the site is updated within 24 hours of the latest release). **Still on Mockito 1.x?** See [what's new in Mockito 2](https://github.com/mockito/mockito/wiki/What%27s-new-in-Mockito-2)! From 703247e79693b1ceafe944b7b3a8afd98100009c Mon Sep 17 00:00:00 2001 From: Thach Le Date: Thu, 24 Apr 2025 13:56:54 +0700 Subject: [PATCH 20/20] Fix broken link icon (#67) --- _posts/2000-01-01-intro.md | 2 +- img/google_group_icon.png | Bin 0 -> 1277 bytes 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 img/google_group_icon.png diff --git a/_posts/2000-01-01-intro.md b/_posts/2000-01-01-intro.md index ece742f..9c3a527 100755 --- a/_posts/2000-01-01-intro.md +++ b/_posts/2000-01-01-intro.md @@ -27,7 +27,7 @@ style: center Please see the [release notes page](https://github.com/mockito/mockito/releases). -Updates are announced via our [mailing list] Google Groups. +Updates are announced via our [mailing list] Google Groups. Mockito downloads and instructions for setting up Maven, Gradle and other build systems are available from the [Central Repository](https://search.maven.org/artifact/org.mockito/mockito-core/). diff --git a/img/google_group_icon.png b/img/google_group_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..fdeb5fd0bcc5b648aca9d9251b1ff62f751f3ba1 GIT binary patch literal 1277 zcmVMsT8?l|&s zEu{X`k?PL0v|ztI&U$3)a2NEW0(4fqwST7kwvw$8$etR5H zFJJyp)3N<})C*8AVS_EO+mQ;+dnGs!N2dV2){@`SsBF2s|B3&o9wb2jiH)?$i&oUU z>ug+5?XgREYHI(q@#csskxE}O6n5ozvAf7+bN&s+&Yk#p*9mA)sLxJ~*=PaveB$%O9xFIxN z+u2yivdMFoRor~97r|Y#|VrcPgJZ57_*(Oh4SQ5k&fFV=<$F$XYd-1%(NC5CK zgESk*Vvy0QvYS@_VbwajTf}^Zrt_8L!3PXgQmyG({wKAPi%MQ($)2G zi;p~UP9DiRfRDMDcYCuHjAq|@1|;<(s8`Aa0C~~M z+JDB(%*~FS2Y2rFwljTQ-DwMo{*FjhW3i1LG5(2