/* * FETCH BY ID TEST */ @Test public void vehicleMasterFetchById() { try { VehicleMaster bull = vehicleMasterRep.getById(99999l); assertNotNull("No VehicleMaster returned from fetchById", bull); assertTrue( "vehicleMasterFetchById method failed on retrieve content value. " + "Actual value: " + bull.getDescription() + " " + "Expected value: testDescription0", bull.getDescription().equals("testDescription0")); bull = vehicleMasterRep.getById(987654321l); assertNull(bull); } catch (Exception e) { fail("Caught Exception in vehicleMasterFetchById method. " + e.toString()); } }