/** * Tests the accuracy of the setter setId(long). * * <p>Using reflection. */ public void testSetter_SetId() { screeningResponse.setId(defaultID); // Gets id by reflection. Object id = AccuracyTestHelper.getPrivateField(ScreeningResponse.class, screeningResponse, "id"); assertEquals("The id should be set correctly.", new Long(defaultID), id); }
/** * Tests the accuracy of the getter getId(). * * <p>Using validated setter to test. */ public void testGetter_GetId() { screeningResponse.setId(defaultID); assertEquals("The id should be got correctly.", defaultID, screeningResponse.getId()); }