oder
Loggen Sie sich ein, um 1-Click® einzuschalten.
oder
Mit kostenloser Probeteilnahme bei Amazon Prime. Melden Sie sich während des Bestellvorgangs an.
Jetzt eintauschen
und EUR 4,00 Gutschein erhalten
Eintausch
Alle Angebote
Möchten Sie verkaufen? Hier verkaufen
Der Artikel ist in folgender Variante leider nicht verfügbar
Keine Abbildung vorhanden für
Farbe:
Keine Abbildung vorhanden

 
Den Verlag informieren!
Ich möchte dieses Buch auf dem Kindle lesen.

Sie haben keinen Kindle? Hier kaufen oder eine gratis Kindle Lese-App herunterladen.

Practical Unit Testing with JUnit and Mockito [Englisch] [Taschenbuch]

Tomek Kaczanowski

Preis: EUR 28,67 kostenlose Lieferung. Siehe Details.
  Alle Preisangaben inkl. MwSt.
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
Auf Lager.
Verkauf und Versand durch Amazon. Geschenkverpackung verfügbar.
Lieferung bis Mittwoch, 23. April: Wählen Sie an der Kasse Morning-Express. Siehe Details.

Kurzbeschreibung

23. April 2013

This book explains in detail how to implement unit tests using two very popular open source Java technologies: JUnit and Mockito. It presents a range of techniques necessary to write high quality unit tests - e.g. mocks, parametrized tests and matchers. It also discusses trade-offs related to the choices we have to make when dealing with some real-life code issues.

The book stresses the importance of writing readable and maintainable unit tests, and puts a lot of stress on code quality. It shows how to achieve testable code and to eliminate common mistakes by following the Test Driven Development approach. Every topic discussed in the book is illustrated with code examples, and each chapter is accompanied by some exercises.

By reading this book you will:

  • Grasp the role and purpose of unit tests
  • Write high-quality, readable and maintainable unit tests
  • Learn how to use JUnit and Mockito (but also other useful tools)
  • Avoid common pitfalls when writing unit tests
  • Recognize bad unit tests, and fix them in no time
  • Develop code following the Test Driven Development (TDD) approach
  • Use mocks, stubs and test-spies intelligently
  • Measure the quality of your tests using code coverage and mutation testing
  • Learn how to improve your tests' code so it is an asset and not a burden
  • Test collections, expected exceptions, time-dependent methods and much more
  • Customize test reports so that they show you what you really need to know
  • Master tools and techniques your team members have never even heard of (priceless!) :)

Nowadays every developer is expected to write unit tests. While simple in theory, in practice writing high-quality unit tests can turn out to be a real challenge. This book will help.


Wird oft zusammen gekauft

Practical Unit Testing with JUnit and Mockito + Effective Unit Testing: A Guide for Java Developers
Preis für beide: EUR 57,67

Die ausgewählten Artikel zusammen kaufen


Produktinformation


Mehr über den Autor

Entdecken Sie Bücher, lesen Sie über Autoren und mehr

Produktbeschreibungen

Über den Autor und weitere Mitwirkende

Tomek Kaczanowski is a technical team leader from Krakow, Poland. He has a strong interest in code quality, testing and automation - preferably all three together. Combining technical with soft skills, he also ventures into the realms of mentoring, teaching, lecturing and article writing, not to mention preaching sermons to the unconverted in the hope of redeeming them (or at least their code)! He hates doing things manually, and is allergic to empty src/test/java directories. Tomek believes that by working with legacy code, and improving it, he can make the world a better place. To his disappointment, the world does not seem to care all that much about his efforts. Apart from all this weirdness, he is a pretty normal person – a husband, father of two, and cat owner.

Welche anderen Artikel kaufen Kunden, nachdem sie diesen Artikel angesehen haben?


In diesem Buch (Mehr dazu)
Ausgewählte Seiten ansehen
Buchdeckel | Copyright | Inhaltsverzeichnis | Auszug | Stichwortverzeichnis | Rückseite
Hier reinlesen und suchen:

Eine digitale Version dieses Buchs im Kindle-Shop verkaufen

Wenn Sie ein Verleger oder Autor sind und die digitalen Rechte an einem Buch haben, können Sie die digitale Version des Buchs in unserem Kindle-Shop verkaufen. Weitere Informationen

Kundenrezensionen

Es gibt noch keine Kundenrezensionen auf Amazon.de
5 Sterne
4 Sterne
3 Sterne
2 Sterne
1 Sterne
Die hilfreichsten Kundenrezensionen auf Amazon.com (beta)
Amazon.com: 4.9 von 5 Sternen  7 Rezensionen
8 von 8 Kunden fanden die folgende Rezension hilfreich
5.0 von 5 Sternen Great read for every developer! 14. Juni 2013
Von Carter - Veröffentlicht auf Amazon.com
Format:Taschenbuch|Von Amazon bestätigter Kauf
I recently bought this book about a month ago once we started using Mockito more on our project. There aren't too many books out there about Mockito and most of the JUnit books cover a wide range of testing ideas, along with being semi out of date. This book is very new and is amazing. I have already read this book over once and constantly find me correcting test classes and refactoring tests in more positive ways. My skill level with both JUnit and Mockito has risen exponentially. I would recommend this book to anyone using JUnit or Mockito or to any developer out there who wants to learn more about these frameworks. I really can't say enough good things about this book. Thank you to the author for taking the time to write the book. If you have come across this book in searches and debated on whether or not to buy it, trust me, it's worth every penny and then some.
5 von 5 Kunden fanden die folgende Rezension hilfreich
4.0 von 5 Sternen Mostly good, found wanting in some areas 15. Juli 2013
Von Jared M. - Veröffentlicht auf Amazon.com
Format:Taschenbuch|Von Amazon bestätigter Kauf
In general, I liked this book. The author is clearly knowledgeable on the subject matter, and covers most of the important points. To all readers: I am giving this a four star review, because it does do most of the things it sets out to do. Because it was recently published (at the time of this review), it is going to be the most up to date reference you can find, few books are using the latest versions of JUnit and Mockito, which is valuable, because JUnit 3 is so different from JUnit 4... and JUnit 4.11 is so different form JUnit 4.6.

However, I'm going to spend a bit more time on the problems, because they're more interesting to talk about, but not because the book is only problems.

1) It needs a bit more editing. Certain parts of the book are not formatted well, and it is pretty noticeable. Again, reader, keep in mind my 4 star rating, it's not *SO BAD* to make it unreadable, just in a few places you get surprised by such a noticeable and easily fixable formatting problem.
2) It needs more integrated examples. Many of the examples are kept simple, which makes them clear about that particular concept, but then you look at your existing code and realize that it's significantly more complicated than the example in this book, and it's not so easy to transfer the use cases. A chapter on doing exactly that, looking at more complicated code and figuring out how to test it would be extremely helpful.
3) I bought this book because I have a reasonably complicated project than I wanted to learn how to test before I moved onto deployment. I would think that most of the people buying this book would be in that situation... it is a rare person who would think about testing before the code is actually written, unless you're already used to thinking that way. This book spends a large amount of time talking about that concept (Test Driven Development, or TDD) - it is the entirety of Chapter 4. However, I suspect that most readers either 1. already know about TDD and are using it, and therefore don't need that much of an in depth discussion of it, or 2. are like me, and are looking to test existing software. In my opinion, this book spends too much energy trying to teach people to use TDD, and not enough effort helping people add tests to their existing code that wasn't designed with TDD, nor enough effort on how to refactor existing code to make it more testable.
4) This is related to #3. I wish this book had a section on, "okay, your test has failed, but you don't know why". How can you modify your test and use a debugger to figure out why the test failed and how can you fix it? For example, if you use a mockito mock, and you say "verify that this method was called once" and it was called twice, what could/should you do to figure out where it was called from?

If you're looking for a book that teaches the latest versions of JUnit, Mockito, and related packages (CatchException, PowerMock, etc.), this book is for you. If you're looking for a book that will help you debug existing code and write tests for existing code, this book is not as helpful.
2 von 2 Kunden fanden die folgende Rezension hilfreich
5.0 von 5 Sternen Truly Practical... a must for JUnit testers! 5. November 2013
Von G. Dickens - Veröffentlicht auf Amazon.com
Format:Taschenbuch|Von Amazon bestätigter Kauf
Amazing! Tomek absolutely named the book correctly with "Practical". One of the few technical books that I could not put down. I have experience with JUnit, Mockito, Powermock and Hamcrest, and still learned so much from the examples.

Not only are the examples practical, Tomek addresses discusses real dilemmas that we face in application testing. Check out the "Points of Controversy", real good stuff in that chapter for the experienced as well as the inexperienced.
1 von 1 Kunden fanden die folgende Rezension hilfreich
5.0 von 5 Sternen Well written! 17. März 2014
Von Ram.G - Veröffentlicht auf Amazon.com
Format:Taschenbuch|Von Amazon bestätigter Kauf
The author explains key concepts clearly with code snippets:

(1) SUT / Collaborators

(2) State verification vs Interaction verification

(3) Test doubles - Dummy, vs Fake vs Mock vs Test Spy

(4) Various Approaches : Sub-class and override vs. Partial Mocking vs. PowerMockito

Highly Recommended !
5.0 von 5 Sternen Good Book. I'm glad I bough it 4. Januar 2014
Von F. Poulin - Veröffentlicht auf Amazon.com
Format:Taschenbuch|Von Amazon bestätigter Kauf
This book is good and entertaining. The author writes well, and has been done a great service by his English-speaking editors. It's a solid, professional book with little redundancy and has been written in a good, conversational, and often entertaining style.
Waren diese Rezensionen hilfreich?   Wir wollen von Ihnen hören.
ARRAY(0xa5af71d4)

Kunden diskutieren

Das Forum zu diesem Produkt
Diskussion Antworten Jüngster Beitrag
Noch keine Diskussionen

Fragen stellen, Meinungen austauschen, Einblicke gewinnen
Neue Diskussion starten
Thema:
Erster Beitrag:
Eingabe des Log-ins
 

Kundendiskussionen durchsuchen
Alle Amazon-Diskussionen durchsuchen
   


Ähnliche Artikel finden


Ihr Kommentar