home.social

#assertj — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #assertj, aggregated by home.social.

fetched live
  1. Our next #JCON2026 session is live: 'Better #Assertions with #AssertJ' with @timtebeek

    Not all #testing libraries are equal. Sure they all run your tests, but what happens when they #fail? “Expected ‘true’, was ‘false’” won’t help you …

    Grab your coffee and hit play: youtu.be/W7BhLNVHuqo

  2. Our next #JCON2026 session is live: 'Better #Assertions with #AssertJ' with @timtebeek

    Not all #testing libraries are equal. Sure they all run your tests, but what happens when they #fail? “Expected ‘true’, was ‘false’” won’t help you …

    Grab your coffee and hit play: youtu.be/W7BhLNVHuqo

  3. Happening today in Lucerne:

    Join @scordio for "What's wrong with AssertJ?!" and learn how AssertJ 4 tackles a decade of technical debt, API inconsistencies, and prepares the library for the next generation of JVM development.

    📅 Today, 18:15
    📍 HSLU, next to Lucerne railway station
    🎟️ Free admission
    🍕 Free pizza after the talk

    Everyone interested in Java, testing, and open source is welcome!

    Hosted by your @jugch

    👉 jug.ch/html/events/2026/assert

    #java #jdk #testing #assertj #debt #api #library #jug

  4. Happening today in Lucerne:

    Join @scordio for "What's wrong with AssertJ?!" and learn how AssertJ 4 tackles a decade of technical debt, API inconsistencies, and prepares the library for the next generation of JVM development.

    📅 Today, 18:15
    📍 HSLU, next to Lucerne railway station
    🎟️ Free admission
    🍕 Free pizza after the talk

    Everyone interested in Java, testing, and open source is welcome!

    Hosted by your @jugch

    👉 jug.ch/html/events/2026/assert

    #java #jdk #testing #assertj #debt #api #library #jug

  5. Join me and the Seattle Software Crafters group for my talk on "Refactoring Tests"!

    The talk starts at 10am PDT (5pm UTC), but you can join 30 minutes earlier to chat.

    meetup.com/seattle-software-cr

    #Refactoring #AssertJ #JUnit #Testing

  6. Join me and the Seattle Software Crafters group for my talk on "Refactoring Tests"!

    The talk starts at 10am PDT (5pm UTC), but you can join 30 minutes earlier to chat.

    meetup.com/seattle-software-cr

    #Refactoring #AssertJ #JUnit #Testing

  7. Neither. I just use #AssertJ! 🤓

    And yes, this is coming from a #JUnit maintainer. 😇

  8. Neither. I just use #AssertJ! 🤓

    And yes, this is coming from a #JUnit maintainer. 😇

  9. Excited for #JCON EUROPE 2026? See Tim te Beek at #JCON2026 in Cologne talking about 'Better Assertions with #AssertJ'

    Not all testing #libraries are equal. Sure they all run your #tests, but what happens when they fail? “Expected ‘true’, …

    🎟️ 2026.europe.jcon.one/tickets
    Free for #JUG members

  10. Excited for #JCON EUROPE 2026? See Tim te Beek at #JCON2026 in Cologne talking about 'Better Assertions with #AssertJ'

    Not all testing #libraries are equal. Sure they all run your #tests, but what happens when they fail? “Expected ‘true’, …

    🎟️ 2026.europe.jcon.one/tickets
    Free for #JUG members

  11. Awesome AssertJ: Use isEqualToNormalizingNewlines To Assert With Text Block
    A blog by @mrhaki

    A Java text block is an easy way to have a multiline string value. But there is a catch if we want to use a text block with the assertion method isEqualTo. Suppose you have written a piece of code that create a new string value where the line endings are defined using System.lineSeparator(). The string value would have the...

    #dev #softwaredevelopment #Java #Testing #AssertJ

    jdriven.com/blog/2026/02/Aweso

  12. Awesome AssertJ: Use isEqualToNormalizingNewlines To Assert With Text Block
    A blog by @mrhaki

    A Java text block is an easy way to have a multiline string value. But there is a catch if we want to use a text block with the assertion method isEqualTo. Suppose you have written a piece of code that create a new string value where the line endings are defined using System.lineSeparator(). The string value would have the...

    #dev #softwaredevelopment #Java #Testing #AssertJ

    jdriven.com/blog/2026/02/Aweso

  13. Was tun, wenn #JUnit nicht mehr reicht? Christopher Olbertz zeigt, wie #AssertJ für bessere Lesbarkeit sorgt, #ArchUnit Architekturverstöße erkennt & #Mockito Tests entkoppelt.

    Jetzt Teststrategie modernisieren: javapro.io/de/testen-mit-java-

    #CleanCode #JAVAPRO #unittesting #JAVAPRO

  14. Was tun, wenn #JUnit nicht mehr reicht? Christopher Olbertz zeigt, wie #AssertJ für bessere Lesbarkeit sorgt, #ArchUnit Architekturverstöße erkennt & #Mockito Tests entkoppelt.

    Jetzt Teststrategie modernisieren: javapro.io/de/testen-mit-java-

    #CleanCode #JAVAPRO #unittesting #JAVAPRO

  15. Instead of buying more stuff that I don’t really need, I’m sponsoring open source #Java projects that I rely on, starting with #JUnit and #AssertJ (via core maintainers Joel and Stefano).

    If I was a big company using Java, I’d be embarrassed at not sponsoring these projects.

  16. Instead of buying more stuff that I don’t really need, I’m sponsoring open source #Java projects that I rely on, starting with #JUnit and #AssertJ (via core maintainers Joel and Stefano).

    If I was a big company using Java, I’d be embarrassed at not sponsoring these projects.

  17. Du willst, dass dein Team systematisch testet, & das auch richtig? Christopher Olbertz zeigt dir die passenden Tools für verschiedene Testarten:

    ✔️ Unit-Tests, Architektur-Checks, Mocking komplexer Abhängigkeiten

    Lese: javapro.io/de/testen-mit-java-

    #JUnit #Mockito #AssertJ #ArchUnit

  18. Du willst, dass dein Team systematisch testet, & das auch richtig? Christopher Olbertz zeigt dir die passenden Tools für verschiedene Testarten:

    ✔️ Unit-Tests, Architektur-Checks, Mocking komplexer Abhängigkeiten

    Lese: javapro.io/de/testen-mit-java-

    #JUnit #Mockito #AssertJ #ArchUnit

  19. Hack.Commit.Push Switzerland is just one week away! 🇨🇭

    This is a great opportunity to get involved in Open Source projects like #AssertJ, with direct guidance from the maintainers!

    switzerland2025.hack-commit-pu

  20. Hack.Commit.Push Switzerland is just one week away! 🇨🇭

    This is a great opportunity to get involved in Open Source projects like #AssertJ, with direct guidance from the maintainers!

    switzerland2025.hack-commit-pu

  21. btw, if you run a user group/meetup and want me to present any of my talks (on Testable Architecture, Event Sourcing, etc.) to your group (remotely or in person in the SF Bay Area), let me know!

    See my Ted Talks page: ted.dev/talks

    #Java #EventSourcing #JUnit #AssertJ

  22. btw, if you run a user group/meetup and want me to present any of my talks (on Testable Architecture, Event Sourcing, etc.) to your group (remotely or in person in the SF Bay Area), let me know!

    See my Ted Talks page: ted.dev/talks

    #Java #EventSourcing #JUnit #AssertJ

  23. Love ? Love F/OSS? Wanna contribute to a project?
    assertj-neo4j really needs a reboot.
    Hit me up if you wanna work on that!

    assertj.github.io/doc/
    github.com/joel-costigliola/as

  24. Нашел, проверил, убедил: как мы организовали генерацию SQL-запросов, проверку сложных данных и при чем здесь Allure

    Привет, Хабр! Я, Михаил Герасимов, инженер РСХБ-Интех. Уже два года занимаюсь автоматизацией тестирования, и за это время успел написать (и переписать) немало SQL-запросов. Вместе с моим коллегой Михаилом Палыгой мы развиваем инструменты для автоматизированного тестирования, и сегодня расскажем вам о том как мы справляемся с построением сложных SQL-запросов и проверкой объектов в базе данных, на примере нашей библиотеки CheckMateDB для автоматизации тестирования банковской системы ЦФТ-Банк. В статье опишем проблемы, с которыми сталкивались при ручном написании SQL-запросов и проверке данных: дублирование кода, сложность поддержки, отсутствие единого стиля и низкая информативность тестов. Для решения этих проблем мы разработали инструмент QueryBuilder, который позволяет динамически генерировать SQL-запросы с помощью Java-кода. Мы создали иерархию классов CriteriaBasic и Table для удобного описания критериев поиска данных в базе, используя паттерн fluent interface. Также мы разработали кастомные классы проверок на базе AssertJ с поддержкой Allure-шагов, которые позволяют проверять сложные многоуровневые объекты с возможностью погружения во вложенные структуры. Для облегчения рутинной работы создали плагин, автоматически генерирующий классы DTO и Table на основе структуры базы данных. Библиотека интегрирована с Hibernate через DaoCommon, что обеспечивает удобное выполнение SQL-запросов и управление сессиями. Результатом стало существенное улучшение читаемости тестов, повышение переиспользуемости кода, стандартизация подхода к тестированию и создание информативных Allure-отчетов.

    habr.com/ru/companies/rshb/art

    #java #assertj #sql

  25. Cool, ik kende usingRecursiveComparison() en assertSoftly() nog niet. #AssertJ

    En je eigen #RestAssured testApi via #OpenApi ook niet.

    Verder waren deze testlibraries en #WireMock wel bekend en #Awaitility enigszins ook.

    #devWorldConference #Java

  26. Cool, ik kende usingRecursiveComparison() en assertSoftly() nog niet. #AssertJ

    En je eigen #RestAssured testApi via #OpenApi ook niet.

    Verder waren deze testlibraries en #WireMock wel bekend en #Awaitility enigszins ook.

    #devWorldConference #Java

  27. If you have many assertions, you can also use the SoftAssertions to test all the assertions and give all the results at once.

    Read more 👉 lttr.ai/ATQTo

    #test #unitest #unitTest #testing #AssertJ #assertions #code #developer

  28. Throwing an exception when a business rule is invalid is very common, but do you know that it is very easy to create a test for it?

    Read more 👉 lttr.ai/AYtk5

    #test #unitest #unitTest #testing #AssertJ #assertions #code #developer

  29. When starting #bjForth, I invested some time writing builders for my tests so they read naturally.

    That, paired with the custom assertions that I wrote with #AssertJ, has really made my test code read very fluently *to me*.

    An upfront cost that I don't regret at all 😎

    #Programming #Java #JVM #Forth #TDD

  30. When starting #bjForth, I invested some time writing builders for my tests so they read naturally.

    That, paired with the custom assertions that I wrote with #AssertJ, has really made my test code read very fluently *to me*.

    An upfront cost that I don't regret at all 😎

    #Programming #Java #JVM #Forth #TDD

  31. Эволюция Assert'a на примере тестирования вездехода из Звездных Войн

    Привет, Хабр! Меня зовут Михаил Палыга, я инженер в Блоке обеспечения и контроля качества выпуска изменений ПО в РСХБ‑Интех. На проекте для проверки данных мы пользуемся библиотекой AssertJ — Java библиотекой с открытым исходным кодом, используемой для написания гибких, содержательных и легко читаемых проверок в тестах Java. Мы любим использовать цепочки методов в других наших классах, поэтому данная библиотека органично вписалась в код наших тестов. Я опишу, как со временем менялся наш подход к проведению проверок данных и как менялись сами классы проверок. А чтобы было чуть проще и интересней — займемся тестированием чего‑нибудь из вселенной Звездных Войн. Например, протестируем имперский бронированный транспортный вездеход AT‑AT.

    habr.com/ru/companies/rshb/art

    #автоматизация_тестирования #assertj #assert

  32. If there was one reason I liked coding in #Java, it'd be #AssertJ and its brilliant extensibility.

    Here's an example of it from bjForth (github.com/bahmanm/bjforth)

    The ability to create custom assertions makes the test code concise and read naturally.

    #Programming #TDD

  33. If there was one reason I liked coding in #Java, it'd be #AssertJ and its brilliant extensibility.

    Here's an example of it from bjForth (github.com/bahmanm/bjforth)

    The ability to create custom assertions makes the test code concise and read naturally.

    #Programming #TDD

  34. 🍃 The Spring Framework embraces AssertJ custom assertions to improve web application testing via MockMvc!

    While only a few developers maintain AssertJ in their spare time (one here 🙋), seeing adoptions by industry-leading frameworks like Spring is incredibly motivating and further validates our efforts.

    Many thanks for your trust, Spring Team!

    #assertj #spring #opensource #foss #java #testing

  35. OMG, finally we can do things like:

    assertThat(mockMvc.perform(post("/increase")))
    .body()
    .isEqualTo("counter 43");

    🎉 #AssertJ 🥳

    spring.io/blog/2024/04/11/spri

  36. 🚨 #LiveCoding Alert 🚨

    Mike and I will continue with episode 26 (!!) of creating the #SpringBoot #Java based "Song Themes" app.

    Today we're going to continue to focus on validation, but first we're going to make a friendlier custom #AssertJ assertion for our `Result` class.

    Join us in about 20 minutes (9am PDT | 4pm UTC) on Twitch (jitterted.stream) or YouTube (youtube.com/live/qbiCi9_3G00).