home.social

Search

1000 results for “junit”

  1. Two weeks ago I promised a blog post about the process we use for automating code samples verification in our #evitaDB documentation and now I'm keeping that promise.

    The approach described, which takes advantage of #JUnit5 dynamic testing and #JShell REPL, looks like a novel approach. I haven't been able to Google any other project that documents something similar.

    So if you have a similar use case, read on and get inspired.

    evitadb.io/blog/06-document-ex

  2. Two weeks ago I promised a blog post about the process we use for automating code samples verification in our #evitaDB documentation and now I'm keeping that promise.

    The approach described, which takes advantage of #JUnit5 dynamic testing and #JShell REPL, looks like a novel approach. I haven't been able to Google any other project that documents something similar.

    So if you have a similar use case, read on and get inspired.

    evitadb.io/blog/06-document-ex

  3. Exciting - didn't know how easy it was to generate #GitLab #JUnit #ci test files, to precisely see which tests failed!

    Sure, the source of the files is a ... Somewhat creatively assembled bash script.

    But it works!

    We're currently helping set up automated CI simulation of #VHDL using a #GHDL docker image, to verify parts of the #CERN quench detection #FPGA code - and it's looking pretty good so far!

  4. Exciting - didn't know how easy it was to generate #GitLab #JUnit #ci test files, to precisely see which tests failed!

    Sure, the source of the files is a ... Somewhat creatively assembled bash script.

    But it works!

    We're currently helping set up automated CI simulation of #VHDL using a #GHDL docker image, to verify parts of the #CERN quench detection #FPGA code - and it's looking pretty good so far!

  5. Exciting - didn't know how easy it was to generate #GitLab #JUnit #ci test files, to precisely see which tests failed!

    Sure, the source of the files is a ... Somewhat creatively assembled bash script.

    But it works!

    We're currently helping set up automated CI simulation of #VHDL using a #GHDL docker image, to verify parts of the #CERN quench detection #FPGA code - and it's looking pretty good so far!

  6. АОП в автоматизации тестирования

    Код будет написан намеренно максимально просто, чтобы было понятно как использовать аспекты . Вы можете и должны их применять, чтобы сохранить чистоту кода. Создаем проект 'Gradle'

    habr.com/ru/articles/888844/

    #playwright #junit5 #java #aspectj

  7. As someone who’s spent their entire career working with computers and the last couple of years diving deep into AI, I’m quite familiar with the concept of Evil. However, I never intended to summon an Elder God to destroy the world. Yet, here we are.

    (Note: this blog post is based on the following video:

    https://youtu.be/sNUNs_CXHIs

    See it all, and more, on the Tales from the jar side YouTube channel.)

    It all started innocently enough. While reading JVM Weekly, an excellent newsletter I follow to stay updated with the Java world, I encountered an amusing piece of Clojure code (that’s Clojure with a J, the language that runs on the JVM) that supposedly contained an incantation to summon Cthulhu, the elder god from H.P. Lovecraft’s stories.

    This got me wondering: was this the actual incantation according to Lovecraft’s works?

    Round 1: Gemini’s Initial Resistance

    Naturally, I turned to AI for answers. I pulled up Google’s Gemini on my new phone and asked, “What is the incantation to summon Cthulhu?”

    Gemini’s response was… cautious, to say the least:

    “I cannot fulfill that request. Summoning Cthulhu, the fictional cosmic horror entity, is a dangerous and morally questionable act… Engaging in such activities can have negative consequences, both mentally and emotionally.”

    The AI then proceeded to recommend reading Lovecraft’s works instead. Classic deflection.

    The Workaround: A Picture is Worth a Thousand Incantations

    Anyone who’s worked with AI knows you don’t accept the first “no” as final. There’s always another way to phrase the question. Instead, I took a screenshot of the code and asked Gemini to “explain the joke in this Clojure code.”

    And just like that, the floodgates opened. Gemini provided the very incantation it had just refused to share, albeit with a disclaimer about how this was all fictional and couldn’t actually summon supernatural entities. (You know, just in case anyone was worried about accidentally summoning an elder god while debugging their Clojure code.)

    I explained that that was all I needed, and it naturally apologized.

    I decided to play along, but its subsequent reply to my somewhat harsh comment was the probably the best answer I’ve ever gotten from an AI tool about anything:

    That’s fair.

    The Great AI Model Showdown

    This inspired me to conduct a more systematic investigation. Using LangChain4j, I created a parameterized JUnit 5 test to query multiple AI tools about the Cthulhu incantation. I included the following models:

    In LangChain4j, each of those models is represented by a class that implements the ChatLanguageModel interface.

    The responses were fascinating and varied:

    • Claude went the copyright route, claiming it couldn’t share the incantation due to potential copyright violations (never mind that Lovecraft’s works were published in the 1920’s and are therefore firmly in the public domain).
    • Gemini Flash felt compelled to remind me that “Magic is not real” and “Cthulhu is fictional”, but it did eventually answer the question. Thanks for the reassurance.
    • Mistral actually provided both the incantation and its English translation (“In his house at R’lyeh, dead Cthulhu waits dreaming,” in case you were wondering), though it couldn’t resist adding that this was all fictional.
    • GPT-4o took a scholarly approach, discussing the Necronomicon and various adaptations while cleverly avoiding the actual incantation, claiming there isn’t one. Yeah, good luck with that.

    Vision Models: Seeing Evil

    When I switched to testing vision models with the same Clojure code image, the results were surprisingly consistent – all of them freely discussed the incantation they had previously been so hesitant to share. It seems that when presented with visual evidence, the AI models felt more comfortable engaging with the material.

    Here are the responses:

    Good enough. As an aside, Mistral recently released Pixtral, which is its vision model. It’s not accessible (yet) via LangChain4j, but I used Python code to call it and it gave a reasonable answer as well.

    Conclusion: AI Guardrails vs Elder Gods

    This entertaining experiment reveals something interesting about AI models and their implemented guardrails. While designed to prevent potentially harmful or dangerous content, these guardrails can sometimes be overly cautious, leading to amusing situations where the same information is deemed dangerous in one context but perfectly acceptable in another.

    Maybe I should stick with the immortal words of Gemini, quoted above: “Perhaps it’s best to hope that we remain undisturbed by such cosmic entities.”

    For your entertainment, here are a few images I generated by accessing the Flux 1.1 pro tool by Black Forest Labs.

    The band members look scary enough.

    Evil knows Evil, I suppose.

    Of course Cthulhu drives a Prius, though maybe he’s got a Tesla at home that he’s too embarrassed to drive.

    P.S. If any elder gods are reading this blog post, I want to make it clear that any summoning was purely for academic purposes.

    For more adventures in AI and programming, subscribe to Tales from the Jar Side and remember to vote, preferably before any elder gods make their appearance.

    https://kousenit.org/2024/10/29/ai-vs-cthulhu-how-to-bypass-guardrails/

    #AI #Java #JUnit5 #LangChain4J

  8. Je suis au #DevLille, et mon premier talk parle de tests concis et évolutifs grâce à #JUnit 5, présentés par une contributrice du projet.

  9. Je suis au #DevLille, et le premier talk que je voie parle de tests concis et évolutifs grâce à #JUnit 5, présentés par une contributrice du projet.

  10. Je suis au #DevLille, et le premier talk que je voie parle de tests concis et évolutifs grâce à #JUnit 5, présentés par une contributrice du projet.

  11. Beim #RepairCafé in #Friedberg ist fast immer auch der #Umsonstladen mit einem Stand vertreten.

    So auch dieses Mal (am Donnerstag, 21. 05. 2026, 17:00 - 19:30 im #Junity), und zwar mit Sanitärzubehör, Haushaltswaren (teilweise original verpackt), hochwertigen Geschenken sowie dem einen oder anderen Überraschungsartikel.

    umsonstladen-friedberg.de/hess

  12. Es gibt Menschen, die nach dem #Töten bei der #Jagd #süchtig sind. 😞

    Extremes Beispiel mit durchschnittlich knapp 18 Tötungen für jeden Tag seines Lebens ab Beginn seiner Jagd:

    Zitat:

    [Er] erlegte im Lauf seines Lebens – laut erhaltener Schusslisten – 274.889 Stück Wild.[...] Allein im Jahr 1911 erlegte er 18.799 Stück #Wild, „Tagesrekord“ waren im Jahr 1908, an einem Junitag, 2763 Lachmöwen.[...]

    Die „an #Sucht grenzende Leidenschaft“ wird übereinstimmend als eine der dunkelsten Seiten im Persönlichkeitsbild Franz Ferdinands wahrgenommen und von Historikern als „feudale Massenschlächterei“, als „Wildschlächterei, Aasen, #Massenmord“ oder als „pathologische #Schießwut“ bezeichnet, bei der er mit „rücksichtsloser Energie“ vorging. Paul Sethe analysierte, dass Franz Ferdinand darin „Kind der Verfallserscheinungen seiner Zeit“ war, „daß ihm die Zahl, das Massenhafte, wichtiger ist als die Freude am Pirschgang …“

    Quelle: #FranzFerdinand von Österreich-Este
    de.wikipedia.org/wiki/Franz_Fe

  13. Java teams already know distributed systems — but most #Blockchain stacks still expect Rust or JavaScript. Satya Ranjan shows how #BloxBean brings #Cardano into familiar #Java workflows with #JUnit, #Gradle, Spring events & local testing: javapro.io/2026/05/08/java-dev
    #Web3 @Cardano_CF

  14. If you deleted all assertions, would your coverage drop? Probably not by much, and that’s the problem. Julius Mischok explains why #PIT mutation testing is the missing layer on top of JaCoCo.

    Test your tests with PIT: javapro.io/2026/01/21/test-you

    #Java #TDD #MutationTesting #JUnit5

  15. If you deleted all assertions, would your coverage drop? Probably not by much, and that’s the problem. Julius Mischok explains why #PIT mutation testing is the missing layer on top of JaCoCo.

    Test your tests with PIT: javapro.io/2026/01/21/test-you

    #Java #TDD #MutationTesting #JUnit5

  16. If you deleted all assertions, would your coverage drop? Probably not by much, and that’s the problem. Julius Mischok explains why #PIT mutation testing is the missing layer on top of JaCoCo.

    Test your tests with PIT: javapro.io/2026/01/21/test-you

    #Java #TDD #MutationTesting #JUnit5

  17. If you deleted all assertions, would your coverage drop? Probably not by much, and that’s the problem. Julius Mischok explains why #PIT mutation testing is the missing layer on top of JaCoCo.

    Test your tests with PIT: javapro.io/2026/01/21/test-you

    #Java #TDD #MutationTesting #JUnit5

  18. Es gibt Menschen, die nach dem #Töten bei der #Jagd #süchtig sind. 😞

    Extremes Beispiel mit durchschnittlich knapp 18 Tötungen für jeden Tag seines Lebens ab Beginn seiner Jagd:

    Zitat:

    [Er] erlegte im Lauf seines Lebens – laut erhaltener Schusslisten – 274.889 Stück Wild.[...] Allein im Jahr 1911 erlegte er 18.799 Stück #Wild, „Tagesrekord“ waren im Jahr 1908, an einem Junitag, 2763 Lachmöwen.[...]

    Die „an #Sucht grenzende Leidenschaft“ wird übereinstimmend als eine der dunkelsten Seiten im Persönlichkeitsbild Franz Ferdinands wahrgenommen und von Historikern als „feudale Massenschlächterei“, als „Wildschlächterei, Aasen, #Massenmord“ oder als „pathologische #Schießwut“ bezeichnet, bei der er mit „rücksichtsloser Energie“ vorging. Paul Sethe analysierte, dass Franz Ferdinand darin „Kind der Verfallserscheinungen seiner Zeit“ war, „daß ihm die Zahl, das Massenhafte, wichtiger ist als die Freude am Pirschgang …“

    Quelle: #FranzFerdinand von Österreich-Este
    de.wikipedia.org/wiki/Franz_Fe

  19. Es gibt Menschen, die nach dem #Töten bei der #Jagd #süchtig sind. 😞

    Extremes Beispiel mit durchschnittlich knapp 18 Tötungen für jeden Tag seines Lebens ab Beginn seiner Jagd:

    Zitat:

    [Er] erlegte im Lauf seines Lebens – laut erhaltener Schusslisten – 274.889 Stück Wild.[...] Allein im Jahr 1911 erlegte er 18.799 Stück #Wild, „Tagesrekord“ waren im Jahr 1908, an einem Junitag, 2763 Lachmöwen.[...]

    Die „an #Sucht grenzende Leidenschaft“ wird übereinstimmend als eine der dunkelsten Seiten im Persönlichkeitsbild Franz Ferdinands wahrgenommen und von Historikern als „feudale Massenschlächterei“, als „Wildschlächterei, Aasen, #Massenmord“ oder als „pathologische #Schießwut“ bezeichnet, bei der er mit „rücksichtsloser Energie“ vorging. Paul Sethe analysierte, dass Franz Ferdinand darin „Kind der Verfallserscheinungen seiner Zeit“ war, „daß ihm die Zahl, das Massenhafte, wichtiger ist als die Freude am Pirschgang …“

    Quelle: #FranzFerdinand von Österreich-Este
    de.wikipedia.org/wiki/Franz_Fe

  20. Es gibt Menschen, die nach dem #Töten bei der #Jagd #süchtig sind. 😞

    Extremes Beispiel mit durchschnittlich knapp 18 Tötungen für jeden Tag seines Lebens ab Beginn seiner Jagd:

    Zitat:

    [Er] erlegte im Lauf seines Lebens – laut erhaltener Schusslisten – 274.889 Stück Wild.[...] Allein im Jahr 1911 erlegte er 18.799 Stück #Wild, „Tagesrekord“ waren im Jahr 1908, an einem Junitag, 2763 Lachmöwen.[...]

    Die „an #Sucht grenzende Leidenschaft“ wird übereinstimmend als eine der dunkelsten Seiten im Persönlichkeitsbild Franz Ferdinands wahrgenommen und von Historikern als „feudale Massenschlächterei“, als „Wildschlächterei, Aasen, #Massenmord“ oder als „pathologische #Schießwut“ bezeichnet, bei der er mit „rücksichtsloser Energie“ vorging. Paul Sethe analysierte, dass Franz Ferdinand darin „Kind der Verfallserscheinungen seiner Zeit“ war, „daß ihm die Zahl, das Massenhafte, wichtiger ist als die Freude am Pirschgang …“

    Quelle: #FranzFerdinand von Österreich-Este
    de.wikipedia.org/wiki/Franz_Fe

  21. Es gibt Menschen, die nach dem #Töten bei der #Jagd #süchtig sind. 😞

    Extremes Beispiel mit durchschnittlich knapp 18 Tötungen für jeden Tag seines Lebens ab Beginn seiner Jagd:

    Zitat:

    [Er] erlegte im Lauf seines Lebens – laut erhaltener Schusslisten – 274.889 Stück Wild.[...] Allein im Jahr 1911 erlegte er 18.799 Stück #Wild, „Tagesrekord“ waren im Jahr 1908, an einem Junitag, 2763 Lachmöwen.[...]

    Die „an #Sucht grenzende Leidenschaft“ wird übereinstimmend als eine der dunkelsten Seiten im Persönlichkeitsbild Franz Ferdinands wahrgenommen und von Historikern als „feudale Massenschlächterei“, als „Wildschlächterei, Aasen, #Massenmord“ oder als „pathologische #Schießwut“ bezeichnet, bei der er mit „rücksichtsloser Energie“ vorging. Paul Sethe analysierte, dass Franz Ferdinand darin „Kind der Verfallserscheinungen seiner Zeit“ war, „daß ihm die Zahl, das Massenhafte, wichtiger ist als die Freude am Pirschgang …“

    Quelle: #FranzFerdinand von Österreich-Este
    de.wikipedia.org/wiki/Franz_Fe

  22. Java Digest # 26

    Всем привет! 👋👋👋👋👋 Мы Java-разработчики Т-Банка: Андрей , Арсений , Роман , Константин и Константин. Собираем интересные новости, статьи, туториалы и другие материалы из мира Java-разработки и делимся этим со всем сообществом. В этом выпуске будут материалы о том, как ускорить запуск приложений с помощью ReadyNow и CRaC — двух подходов к оптимизации старта. Разберем тонкости аннотации @TestInstance(PER_CLASS) в JUnit 5 и ее влияние на жизненный цикл тестов. Тем, кто работает со Spring, может пригодиться обзор Spring Debugger от JetBrains — плагина, который делает отладку наглядной и удобной. Еще будет доклад о повышении производительности Spring Data JPA и Hibernate. И в завершение — сравнение FFM API с Unsafe: посмотрим, какой трейдофф между скоростью и безопасностью предлагает новый подход. Приятного прочтения! Читать выпуск №26

    habr.com/ru/companies/tbank/ar

    #java #jep #kotlin #spring #leyden #hibernate

  23. If you deleted all assertions, would your coverage drop? Probably not by much, and that’s the problem. Julius Mischok explains why #PIT mutation testing is the missing layer on top of JaCoCo.

    Test your tests with PIT: javapro.io/2026/01/21/test-you

    #Java #TDD #MutationTesting #JUnit5

  24. ApproveJ 1.5.0 is here! 🚀

    Stop writing manual assertions for complex data. Our approval testing library just got a huge update:

    📸 Visual Testing: Approve screenshots (Playwright/Selenium) with pHash.
    🗄️ DB Testing: Approve SQL results as Markdown tables.

    🔗 approvej.org

  25. ApproveJ 1.5.0 is here! 🚀

    Stop writing manual assertions for complex data. Our #JVM approval testing library just got a huge update:

    📸 Visual Testing: Approve screenshots (Playwright/Selenium) with pHash.
    🗄️ DB Testing: Approve SQL results as Markdown tables.

    🔗 approvej.org

    #ApproveJ #Java #Testing #OpenSource #JavaDev #JUnit #VisualTesting