Skip to content

Tag: java

How to configure timezone in Maven so Pitest picks it up

I try to apply Pitest to an older project that relies on timezone settings. Some tests are specifically for daylight-saving issues, when certain days in a year have more or less than 24 hours in local time. I cannot change the code or the tests. These tests fail with Pitest but run fine otherwise. From what I…

Splitting String by column with regex

This is a String I get as input, but I just need every column, starting with the second column, aka: 1 (second row) 2 and 1 (third row) 1 (fifth row) This String has no fixed size in how many lines there could be or how many columns (columns being split by one space). I think this is fairly easy

Scala Sealed trait def to val (How to set value?)

I’m kinda new to Scala and have been working on a piece of code that looks like this: I’m kinda confused about how to set the branch variable which is defined as a def in the trait. When I debug I’d like to see branch as a property of the class so its be can be called as :SomeBank.branch bec…