Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

A basic test for each one of your constructors and a check for the values returned by data access methods should always be included.

 

Code Block
languagejava
titleConstructor and Accessor Check
    /**
     * Checks the construction of a FlowId object.
     */
    @Test
    public void testConstruction() {
        final long flowIdValue = 7777L;
        final FlowId flowId = FlowId.valueOf(flowIdValue);
        assertThat(flowId, is(notNullValue()));
        assertThat(flowId.value(), is(flowIdValue));
    }

...