JUnit 5 vs JUnit 4

  • View
    53

  • Download
    3

Embed Size (px)

Text of JUnit 5 vs JUnit 4

  • Por Ismael Soares

    Vs

    4

  • 1versonooficialestprevistaparaJunho/2017

    QuandosaiQuandosai

  • O que h de interessante

    no 5?

  • Diviso de mdulos

  • JUnitPlatformResponsvel pela execuo dos testes na JVM

    Integrao com plugins de compilao (Maven, Ant, Gradle, etc)

    e IDEs (Eclipse, IntelliJ, Netbeans, etc)

    Define uma API (TestEngine) que possibilita que outros frameworks rodam usando Unit

    (Spock, Cucumber, FitNesse, etc)

  • JUnitJupiterDefine novo modelo de extenso do JUnit

    @BeforeEach, @AfterEach, @DisplayName, @Nested, @Tag

  • JUnitVintage

    D suporte para executar cdigo do JUnit 3 e 4

  • Vamosasdiferenas

  • @Annotations

  • @Assertions

  • Diferenadeposiodosparmetros

  • Assertscomfunesannimas

  • FiltrandonoJUnit4

  • FiltrandonoJUnit5

  • Exceptions

  • ExceptionnoJUnit4

  • ExceptionnoJUnit5

  • DynamicTests

  • Esttico

  • Dinmico

  • NoJUnit5

  • ComLambda

  • Vejamaishttp://howtoprogram.xyz/java-technologies/junit-5-tutorial/

    Custom Annotations @DisplayName Assumptions @Nested Injection Conditions

    https://www.youtube.com/watch?v=zhXMw2z0Aa8

    http://howtoprogram.xyz/java-technologies/junit-5-tutorial/https://www.youtube.com/watch?v=zhXMw2z0Aa8

  • Obrigado@rkmael

    rkmael@hotmail.com

    labs.bluesoft.com.br

    rkmael.com

    mailto:rkmael@hotmail.comhttp://www.bluesoft.com.br/blog