VOOZH about

URL: https://www.javacodegeeks.com/tag/hamcrest

⇱ Hamcrest Archives - Java Code Geeks


  • Core Java👁 Image
    Yatin BatraSeptember 9th, 2024
    0 1,025

    Verify List Elements with Specific Properties Using Hamcrest

    Hamcrest is a powerful framework used for writing matcher objects, which are helpful when writing tests in Java. One common…

    Read More »
  • Core Java👁 Image
    Yatin BatraSeptember 9th, 2024
    0 373

    Hamcrest Collection hasItem() Example

    In Java, it’s common to check whether a collection contains a specific element. This is a frequent task in testing…

    Read More »
  • Core Java👁 Image
    Yatin BatraAugust 12th, 2024
    0 1,171

    hasItems() vs. contains() vs. containsInAnyOrder() in Hamcrest

    Hamcrest is a popular framework for writing matcher objects, allowing for more readable and flexible unit tests. Among its many…

    Read More »
  • Core Java👁 Image
    Yatin BatraAugust 8th, 2024
    0 621

    Check if a Variable Is Null Using Hamcrest

    In unit testing, verifying that a variable is null is a common task. Hamcrest, a popular framework for writing matcher…

    Read More »
  • Core Java👁 Image
    Lubos KrnacMarch 29th, 2016
    0 535

    Verifying DateTime and Date with Hamcrest

    Since I started diving into automated testing and practicing TDD, verification of date values was pain. Luckily there is nice…

    Read More »
  • Core Java👁 Image
    Jacob ZimmermanJanuary 21st, 2015
    1 164

    Advanced Creation of Hamcrest Matchers

    Intro Last time, I went over what a Hamcrest Matcher was, how it’s used, and how to make one. In…

    Read More »
  • Core Java👁 Image
    Jacob ZimmermanJanuary 21st, 2015
    0 165

    Redesigning Hamcrest

    I’ve done a few posts on the Hamcrest library, and I really do enjoy using it, but there are a…

    Read More »
  • Enterprise Java👁 Image
    Rafal BorowiecMarch 13th, 2014
    0 297

    HOW-TO: Test dependencies in a Maven project (JUnit, Mockito, Hamcrest, AssertJ)

    JUnit itself is not enough for most of today’s Java projects. You also need a mocking library, maybe something else.…

    Read More »
  • Core Java👁 Image
    Attila Mihaly BalazsDecember 3rd, 2013
    0 438

    Using Matchers in Tests

    Gone are the days when we were forced to write way too many assertion lines in our testing code. There…

    Read More »
  • 1
  • 2
  • »
Back to top button
Close