Testing made sweet with a Mockito by Jeroen Mols

Поділитися
Вставка
  • Опубліковано 13 жов 2024
  • Subscribe to Devoxx on UA-cam @ bit.ly/devoxx-...
    Like Devoxx on Facebook @ / devoxxcom
    Follow Devoxx on Twitter @ / devoxx
    The past year has been huge for Android testing: Testing support lib, fast JVM unit tests, Espresso test recorder... Having such great tools means writing tests is a breeze! All your apps currently have 80% code coverage, right? Yay! Or wait... is it really? Is all your common logic (networking, databases,...) tested? Do you isolate parts of your code base to keep your tests small? And what about providing relevant testing data?
    In order to achieve this, you need to make use of mocks and stubs. And that's exactly what this talk will be about: What is a mock? What's the difference between a mock and a stub? Are mocks the only way to provide relevant data for your unit tests? What do I do with all the final classes/methods in the Android SDK? How do I architect my app to make it easier to test? ...
    After having adopted TDD as my main development workflow for almost a year now, I feel comfortable saying everything can be tested. Its just a matter of having someone experience show you how.
    Jeroen Mols has a real passion to build things, which continuously challenges him to experiment and learn. In the process refocussed his master in Electrical engineering to become an Android developer. Starting off with highly technical prototypes for Wi-Fi connected products, he build his own file sharing platform (Wi-FileTransfer). Currently he drives the innovation for the official Philips Hue Android and iOS apps.
    One of a kind, never-been-done before apps are what he enjoys most and complex systems, highly technical apps have become his expertise. Currently Jeroen helped realize three huge connected products, various high profile apps (e.g. Nieuwsblad), actively contributes to open source and loves interacting with the Android community.
    [ZMW-0118]

КОМЕНТАРІ • 14

  • @ManpreetSingh-cs5kp
    @ManpreetSingh-cs5kp 5 років тому +7

    This is default the best and simplest talk on mockito

  • @mikhailevchenko3502
    @mikhailevchenko3502 5 років тому +3

    It's one of the best overviews of Mockito, thank you.

  • @VishalRaoOnYouTube
    @VishalRaoOnYouTube 5 років тому +1

    At 34:02, I have 3 code review comments:
    1. shouldn't it be "implements ArgumentMatcher" ?
    2. following that, signature for matches method should take argument List list
    3. signature for matches method should have @Override annotation

  • @akilawickey
    @akilawickey 5 років тому +1

    Thank you very much for the detail level overview of Mockito

  • @vivekach1
    @vivekach1 7 років тому +1

    Thank you.. I got good understanding.. :)

  • @Mederfish
    @Mederfish 4 роки тому

    awesome guy! thanks for sharing your knowledge:)

  • @TeoZarkopafilis
    @TeoZarkopafilis 6 років тому

    Just use default methods in interfaces instead of using static methods

  • @tenminutetokyo2643
    @tenminutetokyo2643 4 роки тому

    “What does it say about the quality of your engineering that you have to have all this testing” - Steve Jobs

  • @twanus2657
    @twanus2657 5 років тому

    Merci'kes

  • @LeeHongYee99
    @LeeHongYee99 7 років тому +12

    The introduction is too long, 10:00

  • @HasNoName69
    @HasNoName69 5 років тому

    Ok, all is fine but... but why
    his shirts collar sticking out from under a sweater? He looks disgusting

    • @Knowledge949
      @Knowledge949 5 років тому +3

      Do you want to marry him? :) :0