In this episode of IntelliJ IDEA Tech Talks, I speak with Roland Weisleder about ArchUnit, a way to enforce your architecture through unit tests.
Description
Are your architecture and code drifting apart? Is the implementation of non-functional requirements and cross-cutting concerns often forgotten? Do you have too much spaghetti code due to circular dependencies? These things happen far too often and will quickly lead to an unmaintainable code base. In the Java ecosystem, the library ArchUnit can help in this situation. In this episode we will look at how we can use ArchUnit to test our architecture within unit tests and finally get structure back into the system. You can use ArchUnit to enforce architecture rules and practices for anyone working on your codebase, including agents.
A few weeks ago I was fortunate to be at JavaZone for the fourth year in a row. JavaZone is one of my favorite conferences; a large crowd, excellent speakers and very well organised. It is a great kick-off to the Fall/Autumn conference season!
On Tuesday, I travelled to Oslo. In the evening it was time for the speaker tour, where the JavaZone crew showed us around the venue, and answered any questions speakers might have. Next it was time for the speaker dinner, a great opportunity to meet fellow speakers. I had dinner with Adele Carpenter, Piotr Przybył, Iulia Feroli, met up with James Ward, Brian Vermeer, Andres Almiray and others.
Andres Almiray, Brian Vermeer, Marit van Dijk and James Ward at the JavaZone 2026 speaker dinner
Day 1
On wednesday I got up early to make it on time to see my colleague Wout Werkman speak:
Async is the New `goto`- Rethinking Structured Concurrency – Wout Werkman
Wout talked to us about Structured Concurrency, using a custom plugin he created to visualise the call tree in IntelliJ IDEA. He also did a shoutout to the talk “Learning modern Java the playful way” by Piotr and myself, which was very nice.
We also managed to get a picture of all JetBrains colleagues present at JavaZone.
JetBrains’ Marit van Dijk, Wout Werkman, Nikita Skvortsov and Frederik Pietzko at JavaZone
Personal live demo of IntelliJ IDEA features for Gerrit Grunwald by Marit van Dijk
At the end of the day, I went to see Piotr speak about how Elasticsearch is already using Vector API; an interesting explanation of this JEP and a concrete example of what it offers. He also made a reference to us speaking together, so it was nice to start and end the day being called out from the stage in the same room.
SIMD for Java- how Elasticsearch already benefits from the Panama Vector API – Piotr Przybył
Day 2
On Thursday morning, it was time for Andres Almiray and myself to speak. When the front row has people like Gunnar Morling and Rafael Winterhalter, that is slightly intimidating… Gunnar was kind enough to tell us he actually learned something new from our talk. (Thank you!)
Marit van Dijk and Andres Almiray speaking at Javazone 2026 (Picture by Ard Jongsma)
Also present were my colleagues Nikita Skvortsov & Wout Werkman. Nikita is the team lead for build tools support in IntelliJ IDEA, who build some of the nice things I get to talk about. Our talk gave him some ideas for things that could be improved even further (stay tuned!).
Getting more out of Maven – Marit van Dijk and Andres Almiray
Piotr took the opportunity to take a selfie with his memes, leading to this Piotr-ception.
Piotr got memed!
Later, I went to see some excellent talks by friends. First, Adele Carpenter is an amazing speaker and I love her take on Java:
10 Things I Hate About Java – Adele Carpenter
Next, Iulia Feroli is a very inspiring presence in the physical AI space. If you enjoy watching her and her robots, you should go subscribe to her channel Back to Engineering.
How I built my own intelligent Robot Arm from Scratch – Iulia Feroli
Aside from attending some talks, I managed to catch up with lots of people in the hallway track.
Finally, it was time to say goodbye to JavaZone. Hopefully, I will be able to come back next year!
Iulia Feroli, Marit van Dijk, Adele Carpenter and Piotr Przybył saying goodbye to JavaZone (Picture by Piotr Przybył)
Last month I had the honor of attending JCrete; “the hottest unconference on the planet!” I had heard many great things, and it certainly lived up to its reputation.
Unconference
JCrete is an unconference; the attendees create the program. Every day starts with a “marketplace”, where anyone can suggest a session. At JCrete, attendees then vote on the proposals and the most popular ones are scheduled in the available time slots and spaces. A session can be a presentation, but more often are discussions where people can share their thoughts and experience, and help others. It is much more interactive than a regular conference. Think of it as one big hallway track!
There were lots of interesting sessions on Java, AI, and other topics. You can find notes on some of the sessions here, but you really have to experience it for yourself.
Java: Virtual Threads and Scoped Values
Some of my favorite sessions were the ones by José Paumard on Virtual Threads and Scoped Values. In this smaller setting, there was room for lots of discussions and sharing. At some point, I even managed to give José some tips for IntelliJ IDEA which he immediately applied. Did you know you can use the live templates iop and ior for IO.println() and IO.readln()?
Live templates for IO.println() and IO.readln()
Impromptu presentation
Several people in the session asked for more tips, and there happened to be some time left at the end of the session. The only available laptop was José’s machine: a Windows machine with a french keyboard! This was certainly an interesting challenge in doing my demo. With the help of José , I managed to show a few tips…
This prompted me to suggest a session on IntelliJ IDEA Tips & Tricks for the next day. Here I managed to show all attendees something about IntelliJ IDEA they didn’t know yet, even my colleague Anton Arhipov (who has been using IntelliJ IDEA for much longer than I have).
When I told Pasha Finkelshteyn about this later, he asked me what it was because surely it would be something he didn’t know either. It turned out to be something he had been looking for recently!
The tip in question? You might know that you can use F2 to navigate to the next problem in a file (or Shift +F2 to go to the previous problem). By default, this cycles through problems by severity; errors first, warnings next, etc. To change this, hover over the Inspection Widget at the top right of the editor, click More (the three dots), click ‘Next Error’ Action (F2) Goes Through and select All Problems
IntelliJ IDEA – Change the order for Next Error action via the Inspection Widget
Alternatively, you can use Search Everywhere (press Shift twice) to look for the setting The ‘Next Error’ action goes through in Settings | Editor | Code Editing and select All Problems there.
IntelliJ IDEA – Change the order for Next Error action in Settings | Editor | Code Editing
JCrete is held on the beautiful island of Crete, which means lots of sun and the opportunity to visit lots of beaches. Fortunately, I also had the opportunity to join a trip to the botanical gardens with Gunnar Morling and his family; the gardens were beautiful, and shade and breeze were very welcome.
Used to determine whether a user is included in an A / B or Multivariate test.
18 months
_ga
ID used to identify users
2 years
_gali
Used by Google Analytics to determine which links on a page are being clicked
30 seconds
_ga_
ID used to identify users
2 years
_gid
ID used to identify users for 24 hours after last activity
24 hours
_gat
Used to monitor number of Google Analytics server requests when using Google Tag Manager
1 minute
_gac_
Contains information related to marketing campaigns of the user. These are shared with Google AdWords / Google Ads when the Google Ads and Google Analytics accounts are linked together.
90 days
__utma
ID used to identify users and sessions
2 years after last activity
__utmt
Used to monitor number of Google Analytics server requests
10 minutes
__utmb
Used to distinguish new sessions and visits. This cookie is set when the GA.js javascript library is loaded and there is no existing __utmb cookie. The cookie is updated every time data is sent to the Google Analytics server.
30 minutes after last activity
__utmc
Used only with old Urchin versions of Google Analytics and not with GA.js. Was used to distinguish between new sessions and visits at the end of a session.
End of session (browser)
__utmz
Contains information about the traffic source or campaign that directed user to the website. The cookie is set when the GA.js javascript is loaded and updated when data is sent to the Google Anaytics server
6 months after last activity
__utmv
Contains custom information set by the web developer via the _setCustomVar method in Google Analytics. This cookie is updated every time new data is sent to the Google Analytics server.