Writing your F.I.R.S.T unit tests

Unit tests are required to test singular sections of code. In java this would normally be a class. They provide confidence to programmers allowing changes to be made and by running tests throughout development any changes that break the tests can be reevaluated, whether that results in the production code being corrected or altering the test ...

Getting started with JUnitParams

Do you write enough tests? Even if the answer is yes there might be some scenarios where you could add a few more to cover extra possibilities. But do you really want to go through the effort of having to write out another test for the extra inputs you are going to test? JUnitParams provides a ...

Is this the correct object?

This is something I came across at work that wasn't working as I expected. After a little playing around it seemed pretty obvious but even after a few years of working with Java this wasn't a situation I came across before. Now what happened? Its way easier to show you an example first. So the problem ...

Motivation and learning

Something strange happened to me a few months ago where I found this urge that I could be better myself. It all started with one of my higher ups at work telling me and my colleagues that we should be spending some time out of work doing some extra learning, whether that was listening to ...

Stopping JavaFX Context Menus from auto hiding

This is a post that I wanted to write as it was a problem I ran into at my previous job probably around this time last year. I was doing some general testing around a JavaFX table application I had written and I ran into this really annoying problem (I find it frustrating anyway). Upon ...

Editable Tables in JavaFX

After hearing my colleague constantly talking about the editable grids that the company I work at designed a long time ago, I decided to do something to make him proud of me. So I wrote a application that creates an editable TableView in JavaFX that can be used to brainlessly enter in data, if that's what ...

Size does matter in JavaFX

Does size matter? That's a question that's been around for a while and the answer is up for debate. But this is JavaFX and the answer is a resounding yes size does matter. I'm not saying that user interfaces need to bigger to be better, I'm talking about controlling size. If you don't control it ...

Browse Categories