Quantcast
Channel: Passion For Code - Java
Browsing latest articles
Browse All 11 View Live

JSR 303 Walkthrough

Seems as if JSR 303 "Bean Validation"specification has been around for a while now. At least long enough to have a look for myself. Curious to learn both the possibilities and the limits of current...

View Article



Basic Project Setup

Basic Project SetupI'll use Apache Maven 2.x and IntelliJ IDEA as my primary development tools, so you might want to learn how to use these first if you plan to work through the examples for yourself....

View Article

Validate single, primitive attribute

Learning Test One: Validate a single, primitive attribute Time to write our first (domain) object and validate something. We'll do this using the TestNG framework to create a tiny test driver...

View Article

What's inside a violation?

What's Inside A Violation?If the validator found a number of violations, what can we do with it? Let's have a look at the simple usages of violation objects.read more

View Article

Beware: now().equals(now()) might yield false

Using time-dependent dataI stumbled across a piece of code the other day, allowing some versioned entity from our domain model to find out whether it's valid from a certain point in time. The...

View Article


Emulating "self types" using Java Generics to simplify fluent API implementation

The Java programming language does not support the notion of "self types", that is "type of this". When implementing fluent APIs, this lack of support can lead to significant duplication of boilerplate...

View Article

Ordering of sub-elements of a TestNG

To help in a discussion on the TestNG mailing list, I created a quick sketch of what I'd like to do regarding the ordering of subelements of a TestNG <suite> XML element.read more

View Article

Image may be NSFW.
Clik here to view.

Maven Drools Support

Maven Drools Support If you want to use JBoss Drools and your build runs on Apache Maven, then these goodies might prove handy for you. Kudos to CloudBees, Inc. for providing free Jenkins CI...

View Article


New mailing lists for JODReports project

I'm pleased to announce that the JODReports project has received two brand new mailing lists, one for user and one for developer discussion each. They are hosted by Google Groups and can be posted to...

View Article


Using SSL or HTTPS servers with self-signed certificates in IntelliJ IDEA

HTTPS connections need to make sure the server 'at the other end' is actually the server it claims to be. This is done using public key certificates. For testing purposes or to save the costs of a...

View Article

Maven Development

Documentation LinksSonatype Aether API Documentation 1.13Sonatype Aether Example Code/>/>

View Article
Browsing latest articles
Browse All 11 View Live




Latest Images