Mockito made clear: Java unit testing with mocks, stubs and spies
Mockito is the most popular framework in the Java world for automating unit testing with dependencies. Learn the Mockito API and how and when to use stubs, mocks, and spies. On a deeper level, discover why the framework does what it does and how it can simplify unit testing in Java. Using Mockito, y...
Gespeichert in:
Beteilige Person: | |
---|---|
Weitere beteiligte Personen: | , |
Format: | Elektronisch E-Book |
Sprache: | Englisch |
Veröffentlicht: |
[Place of publication not identified]
Pragmatic Bookshelf
2023
|
Ausgabe: | [First edition]. |
Schriftenreihe: | The Pragmatic programmers
|
Schlagwörter: | |
Links: | https://learning.oreilly.com/library/view/-/9798888650127/?ar |
Zusammenfassung: | Mockito is the most popular framework in the Java world for automating unit testing with dependencies. Learn the Mockito API and how and when to use stubs, mocks, and spies. On a deeper level, discover why the framework does what it does and how it can simplify unit testing in Java. Using Mockito, you'll be able to isolate the code you want to test from the behavior or state of external dependencies without coding details of the dependency. You'll gain insights into the Mockito API, save time when unit testing, and have confidence in your Java programs. If you've only ever run a few JUnit tests or injected stubs into classes to return preset values, it's time to level up your Java toolbox. Dependencies on other classes and external resources can obscure issues and make bugs hard to detect. You need to test classes in isolation to truly pinpoint your problems. And while you could write dummy classes to replace dependencies yourself, Mockito automates the process and helps you fix your code faster. Start with the Mockito API to generate fake classes for dependencies, configure how each should respond when their methods are called, and verify that the class under test interacts with dependencies the way you'd expect. Next, build unit tests with the Mockito framework and feel confident not just that methods are called, but that they are called the correct number of times and in the correct order. Along the way, follow clear test examples based on JUnit 5 to create stubs, mocks, and spies and find the source of any problems lurking in Java classes.Save time, write better code, and have more confidence in your Java programs with Mockito. |
Umfang: | 1 Online-Ressource (88 Seiten) Illustrationen |
ISBN: | 9798888650127 |
Internformat
MARC
LEADER | 00000cam a22000002c 4500 | ||
---|---|---|---|
001 | ZDB-30-ORH-089795296 | ||
003 | DE-627-1 | ||
005 | 20240228121919.0 | ||
007 | cr uuu---uuuuu | ||
008 | 230322s2023 xx |||||o 00| ||eng c | ||
020 | |a 9798888650127 |c electronic bk. |9 979-8-88865-012-7 | ||
035 | |a (DE-627-1)089795296 | ||
035 | |a (DE-599)KEP089795296 | ||
035 | |a (ORHE)9798888650127 | ||
035 | |a (DE-627-1)089795296 | ||
040 | |a DE-627 |b ger |c DE-627 |e rda | ||
041 | |a eng | ||
082 | 0 | |a 005.1/4 |2 23/eng/20230207 | |
100 | 1 | |a Kousen, Ken |e VerfasserIn |4 aut | |
245 | 1 | 0 | |a Mockito made clear |b Java unit testing with mocks, stubs and spies |c by Ken Kousen ; foreword by Venkat Subramaniam ; edited by Margaret Eldridge |
250 | |a [First edition]. | ||
264 | 1 | |a [Place of publication not identified] |b Pragmatic Bookshelf |c 2023 | |
300 | |a 1 Online-Ressource (88 Seiten) |b Illustrationen | ||
336 | |a Text |b txt |2 rdacontent | ||
337 | |a Computermedien |b c |2 rdamedia | ||
338 | |a Online-Ressource |b cr |2 rdacarrier | ||
490 | 0 | |a The Pragmatic programmers | |
520 | |a Mockito is the most popular framework in the Java world for automating unit testing with dependencies. Learn the Mockito API and how and when to use stubs, mocks, and spies. On a deeper level, discover why the framework does what it does and how it can simplify unit testing in Java. Using Mockito, you'll be able to isolate the code you want to test from the behavior or state of external dependencies without coding details of the dependency. You'll gain insights into the Mockito API, save time when unit testing, and have confidence in your Java programs. If you've only ever run a few JUnit tests or injected stubs into classes to return preset values, it's time to level up your Java toolbox. Dependencies on other classes and external resources can obscure issues and make bugs hard to detect. You need to test classes in isolation to truly pinpoint your problems. And while you could write dummy classes to replace dependencies yourself, Mockito automates the process and helps you fix your code faster. Start with the Mockito API to generate fake classes for dependencies, configure how each should respond when their methods are called, and verify that the class under test interacts with dependencies the way you'd expect. Next, build unit tests with the Mockito framework and feel confident not just that methods are called, but that they are called the correct number of times and in the correct order. Along the way, follow clear test examples based on JUnit 5 to create stubs, mocks, and spies and find the source of any problems lurking in Java classes.Save time, write better code, and have more confidence in your Java programs with Mockito. | ||
650 | 0 | |a Computer software |x Testing | |
650 | 0 | |a Computer software |x Quality control | |
650 | 0 | |a Java (Computer program language) | |
650 | 4 | |a Logiciels ; Qualité ; Contrôle | |
650 | 4 | |a Java (Langage de programmation) | |
650 | 4 | |a Computer software ; Quality control | |
650 | 4 | |a Computer software ; Testing | |
650 | 4 | |a Java (Computer program language) | |
700 | 1 | |a Subramaniam, Venkat |e MitwirkendeR |4 ctb | |
700 | 1 | |a Eldridge, Margaret |e HerausgeberIn |4 edt | |
966 | 4 | 0 | |l DE-91 |p ZDB-30-ORH |q TUM_PDA_ORH |u https://learning.oreilly.com/library/view/-/9798888650127/?ar |m X:ORHE |x Aggregator |z lizenzpflichtig |3 Volltext |
912 | |a ZDB-30-ORH | ||
912 | |a ZDB-30-ORH | ||
951 | |a BO | ||
912 | |a ZDB-30-ORH | ||
049 | |a DE-91 |
Datensatz im Suchindex
DE-BY-TUM_katkey | ZDB-30-ORH-089795296 |
---|---|
_version_ | 1831287033981566976 |
adam_text | |
any_adam_object | |
author | Kousen, Ken |
author2 | Subramaniam, Venkat Eldridge, Margaret |
author2_role | ctb edt |
author2_variant | v s vs m e me |
author_facet | Kousen, Ken Subramaniam, Venkat Eldridge, Margaret |
author_role | aut |
author_sort | Kousen, Ken |
author_variant | k k kk |
building | Verbundindex |
bvnumber | localTUM |
collection | ZDB-30-ORH |
ctrlnum | (DE-627-1)089795296 (DE-599)KEP089795296 (ORHE)9798888650127 |
dewey-full | 005.1/4 |
dewey-hundreds | 000 - Computer science, information, general works |
dewey-ones | 005 - Computer programming, programs, data, security |
dewey-raw | 005.1/4 |
dewey-search | 005.1/4 |
dewey-sort | 15.1 14 |
dewey-tens | 000 - Computer science, information, general works |
discipline | Informatik |
edition | [First edition]. |
format | Electronic eBook |
fullrecord | <?xml version="1.0" encoding="UTF-8"?><collection xmlns="http://www.loc.gov/MARC21/slim"><record><leader>03407cam a22004692c 4500</leader><controlfield tag="001">ZDB-30-ORH-089795296</controlfield><controlfield tag="003">DE-627-1</controlfield><controlfield tag="005">20240228121919.0</controlfield><controlfield tag="007">cr uuu---uuuuu</controlfield><controlfield tag="008">230322s2023 xx |||||o 00| ||eng c</controlfield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">9798888650127</subfield><subfield code="c">electronic bk.</subfield><subfield code="9">979-8-88865-012-7</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(DE-627-1)089795296</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(DE-599)KEP089795296</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(ORHE)9798888650127</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(DE-627-1)089795296</subfield></datafield><datafield tag="040" ind1=" " ind2=" "><subfield code="a">DE-627</subfield><subfield code="b">ger</subfield><subfield code="c">DE-627</subfield><subfield code="e">rda</subfield></datafield><datafield tag="041" ind1=" " ind2=" "><subfield code="a">eng</subfield></datafield><datafield tag="082" ind1="0" ind2=" "><subfield code="a">005.1/4</subfield><subfield code="2">23/eng/20230207</subfield></datafield><datafield tag="100" ind1="1" ind2=" "><subfield code="a">Kousen, Ken</subfield><subfield code="e">VerfasserIn</subfield><subfield code="4">aut</subfield></datafield><datafield tag="245" ind1="1" ind2="0"><subfield code="a">Mockito made clear</subfield><subfield code="b">Java unit testing with mocks, stubs and spies</subfield><subfield code="c">by Ken Kousen ; foreword by Venkat Subramaniam ; edited by Margaret Eldridge</subfield></datafield><datafield tag="250" ind1=" " ind2=" "><subfield code="a">[First edition].</subfield></datafield><datafield tag="264" ind1=" " ind2="1"><subfield code="a">[Place of publication not identified]</subfield><subfield code="b">Pragmatic Bookshelf</subfield><subfield code="c">2023</subfield></datafield><datafield tag="300" ind1=" " ind2=" "><subfield code="a">1 Online-Ressource (88 Seiten)</subfield><subfield code="b">Illustrationen</subfield></datafield><datafield tag="336" ind1=" " ind2=" "><subfield code="a">Text</subfield><subfield code="b">txt</subfield><subfield code="2">rdacontent</subfield></datafield><datafield tag="337" ind1=" " ind2=" "><subfield code="a">Computermedien</subfield><subfield code="b">c</subfield><subfield code="2">rdamedia</subfield></datafield><datafield tag="338" ind1=" " ind2=" "><subfield code="a">Online-Ressource</subfield><subfield code="b">cr</subfield><subfield code="2">rdacarrier</subfield></datafield><datafield tag="490" ind1="0" ind2=" "><subfield code="a">The Pragmatic programmers</subfield></datafield><datafield tag="520" ind1=" " ind2=" "><subfield code="a">Mockito is the most popular framework in the Java world for automating unit testing with dependencies. Learn the Mockito API and how and when to use stubs, mocks, and spies. On a deeper level, discover why the framework does what it does and how it can simplify unit testing in Java. Using Mockito, you'll be able to isolate the code you want to test from the behavior or state of external dependencies without coding details of the dependency. You'll gain insights into the Mockito API, save time when unit testing, and have confidence in your Java programs. If you've only ever run a few JUnit tests or injected stubs into classes to return preset values, it's time to level up your Java toolbox. Dependencies on other classes and external resources can obscure issues and make bugs hard to detect. You need to test classes in isolation to truly pinpoint your problems. And while you could write dummy classes to replace dependencies yourself, Mockito automates the process and helps you fix your code faster. Start with the Mockito API to generate fake classes for dependencies, configure how each should respond when their methods are called, and verify that the class under test interacts with dependencies the way you'd expect. Next, build unit tests with the Mockito framework and feel confident not just that methods are called, but that they are called the correct number of times and in the correct order. Along the way, follow clear test examples based on JUnit 5 to create stubs, mocks, and spies and find the source of any problems lurking in Java classes.Save time, write better code, and have more confidence in your Java programs with Mockito.</subfield></datafield><datafield tag="650" ind1=" " ind2="0"><subfield code="a">Computer software</subfield><subfield code="x">Testing</subfield></datafield><datafield tag="650" ind1=" " ind2="0"><subfield code="a">Computer software</subfield><subfield code="x">Quality control</subfield></datafield><datafield tag="650" ind1=" " ind2="0"><subfield code="a">Java (Computer program language)</subfield></datafield><datafield tag="650" ind1=" " ind2="4"><subfield code="a">Logiciels ; Qualité ; Contrôle</subfield></datafield><datafield tag="650" ind1=" " ind2="4"><subfield code="a">Java (Langage de programmation)</subfield></datafield><datafield tag="650" ind1=" " ind2="4"><subfield code="a">Computer software ; Quality control</subfield></datafield><datafield tag="650" ind1=" " ind2="4"><subfield code="a">Computer software ; Testing</subfield></datafield><datafield tag="650" ind1=" " ind2="4"><subfield code="a">Java (Computer program language)</subfield></datafield><datafield tag="700" ind1="1" ind2=" "><subfield code="a">Subramaniam, Venkat</subfield><subfield code="e">MitwirkendeR</subfield><subfield code="4">ctb</subfield></datafield><datafield tag="700" ind1="1" ind2=" "><subfield code="a">Eldridge, Margaret</subfield><subfield code="e">HerausgeberIn</subfield><subfield code="4">edt</subfield></datafield><datafield tag="966" ind1="4" ind2="0"><subfield code="l">DE-91</subfield><subfield code="p">ZDB-30-ORH</subfield><subfield code="q">TUM_PDA_ORH</subfield><subfield code="u">https://learning.oreilly.com/library/view/-/9798888650127/?ar</subfield><subfield code="m">X:ORHE</subfield><subfield code="x">Aggregator</subfield><subfield code="z">lizenzpflichtig</subfield><subfield code="3">Volltext</subfield></datafield><datafield tag="912" ind1=" " ind2=" "><subfield code="a">ZDB-30-ORH</subfield></datafield><datafield tag="912" ind1=" " ind2=" "><subfield code="a">ZDB-30-ORH</subfield></datafield><datafield tag="951" ind1=" " ind2=" "><subfield code="a">BO</subfield></datafield><datafield tag="912" ind1=" " ind2=" "><subfield code="a">ZDB-30-ORH</subfield></datafield><datafield tag="049" ind1=" " ind2=" "><subfield code="a">DE-91</subfield></datafield></record></collection> |
id | ZDB-30-ORH-089795296 |
illustrated | Not Illustrated |
indexdate | 2025-05-05T13:23:30Z |
institution | BVB |
isbn | 9798888650127 |
language | English |
open_access_boolean | |
owner | DE-91 DE-BY-TUM |
owner_facet | DE-91 DE-BY-TUM |
physical | 1 Online-Ressource (88 Seiten) Illustrationen |
psigel | ZDB-30-ORH TUM_PDA_ORH ZDB-30-ORH |
publishDate | 2023 |
publishDateSearch | 2023 |
publishDateSort | 2023 |
publisher | Pragmatic Bookshelf |
record_format | marc |
series2 | The Pragmatic programmers |
spelling | Kousen, Ken VerfasserIn aut Mockito made clear Java unit testing with mocks, stubs and spies by Ken Kousen ; foreword by Venkat Subramaniam ; edited by Margaret Eldridge [First edition]. [Place of publication not identified] Pragmatic Bookshelf 2023 1 Online-Ressource (88 Seiten) Illustrationen Text txt rdacontent Computermedien c rdamedia Online-Ressource cr rdacarrier The Pragmatic programmers Mockito is the most popular framework in the Java world for automating unit testing with dependencies. Learn the Mockito API and how and when to use stubs, mocks, and spies. On a deeper level, discover why the framework does what it does and how it can simplify unit testing in Java. Using Mockito, you'll be able to isolate the code you want to test from the behavior or state of external dependencies without coding details of the dependency. You'll gain insights into the Mockito API, save time when unit testing, and have confidence in your Java programs. If you've only ever run a few JUnit tests or injected stubs into classes to return preset values, it's time to level up your Java toolbox. Dependencies on other classes and external resources can obscure issues and make bugs hard to detect. You need to test classes in isolation to truly pinpoint your problems. And while you could write dummy classes to replace dependencies yourself, Mockito automates the process and helps you fix your code faster. Start with the Mockito API to generate fake classes for dependencies, configure how each should respond when their methods are called, and verify that the class under test interacts with dependencies the way you'd expect. Next, build unit tests with the Mockito framework and feel confident not just that methods are called, but that they are called the correct number of times and in the correct order. Along the way, follow clear test examples based on JUnit 5 to create stubs, mocks, and spies and find the source of any problems lurking in Java classes.Save time, write better code, and have more confidence in your Java programs with Mockito. Computer software Testing Computer software Quality control Java (Computer program language) Logiciels ; Qualité ; Contrôle Java (Langage de programmation) Computer software ; Quality control Computer software ; Testing Subramaniam, Venkat MitwirkendeR ctb Eldridge, Margaret HerausgeberIn edt |
spellingShingle | Kousen, Ken Mockito made clear Java unit testing with mocks, stubs and spies Computer software Testing Computer software Quality control Java (Computer program language) Logiciels ; Qualité ; Contrôle Java (Langage de programmation) Computer software ; Quality control Computer software ; Testing |
title | Mockito made clear Java unit testing with mocks, stubs and spies |
title_auth | Mockito made clear Java unit testing with mocks, stubs and spies |
title_exact_search | Mockito made clear Java unit testing with mocks, stubs and spies |
title_full | Mockito made clear Java unit testing with mocks, stubs and spies by Ken Kousen ; foreword by Venkat Subramaniam ; edited by Margaret Eldridge |
title_fullStr | Mockito made clear Java unit testing with mocks, stubs and spies by Ken Kousen ; foreword by Venkat Subramaniam ; edited by Margaret Eldridge |
title_full_unstemmed | Mockito made clear Java unit testing with mocks, stubs and spies by Ken Kousen ; foreword by Venkat Subramaniam ; edited by Margaret Eldridge |
title_short | Mockito made clear |
title_sort | mockito made clear java unit testing with mocks stubs and spies |
title_sub | Java unit testing with mocks, stubs and spies |
topic | Computer software Testing Computer software Quality control Java (Computer program language) Logiciels ; Qualité ; Contrôle Java (Langage de programmation) Computer software ; Quality control Computer software ; Testing |
topic_facet | Computer software Testing Computer software Quality control Java (Computer program language) Logiciels ; Qualité ; Contrôle Java (Langage de programmation) Computer software ; Quality control Computer software ; Testing |
work_keys_str_mv | AT kousenken mockitomadeclearjavaunittestingwithmocksstubsandspies AT subramaniamvenkat mockitomadeclearjavaunittestingwithmocksstubsandspies AT eldridgemargaret mockitomadeclearjavaunittestingwithmocksstubsandspies |