Alonso Del ArteAsserting minimums and maximums in Java test classes with org.testframeAssert Equals is the most frequently used assertion in any unit testing framework for Java. And it’s called the same thing in JUnit, TestNG…1d ago1d ago
Alonso Del ArteGit advisory regarding ignored files can be turned on or offWorking on Git as long as I have, you start to notice that different versions of Git behave slightly different. If you really want Git on…Oct 29Oct 29
Alonso Del ArteA simpler way to write inline source in JavadocA lot of HTML tags are available in Javadoc. After all, the Javadoc tool is supposed to generate HTML pages, so it makes sense that HTML…Sep 2Sep 2
Alonso Del ArteOverview of the most frequently used Git commands, Part I: Main branch onlyDepending on how you count these things, Git has more than a hundred commands. Most programmers only need four or five on a daily basis.Aug 8Aug 8
Alonso Del ArteOddities of floating point: Negative zeroThe infamous case of 0.1 + 0.2 is just one of the many oddities of the IEEE-754 floating point number formats. Computers deal with integers…Aug 6Aug 6
Alonso Del ArteAWS changes date format for S3 expires directiveIt feels like there are a thousand services in Amazon Web Services (AWS), though I only use like a dozen of them. Most of the services I…Jul 29Jul 29
Alonso Del ArteUse type pattern matching in Java 17 and laterExperienced Java developers can probably think of a few examples in which they wrote something along these lines:Jul 18Jul 18
Alonso Del ArteHelpful null pointer exception messages now standard in Java 21In the old days of Java, null pointer exceptions came with exception messages that were often null themselves. That was annoying.Jul 14Jul 14
Alonso Del ArteThe Javadoc Use pagesAt the top of a standard Javadoc page for a Java class or interface, viewed in your favorite Web browser, you’re going to see links for…Jul 12Jul 12
Alonso Del ArteA subtlety of Assert Equals in TestNGTo check that two arrays are equal in JUnit, you have to use assertArrayEquals(). TestNG doesn’t have assertArrayEquals(), so you just use…Jul 4Jul 4