/** * Tests the accuracy of the getter getResponseText(). * * <p>Using validated setter to test. */ public void testGetter_GetResponseText() { screeningResponse.setResponseText(defaultText); assertEquals( "The responseText should be got correctly.", defaultText, screeningResponse.getResponseText()); }
/** * Tests the accuracy of the getter getResponseCode(). * * <p>Using validated setter to test. */ public void testGetter_GetResponseCode() { screeningResponse.setResponseCode(defaultCode); assertEquals( "The responseCode should be got correctly.", defaultCode, screeningResponse.getResponseCode()); }
/** * Tests the accuracy of the getter getResponseSeverity(). * * <p>Using validated setter to test. */ public void testGetter_GetResponseSeverity() { screeningResponse.setResponseSeverity(responseSeverity); assertEquals( "The responseSeverity should be got correctly.", responseSeverity, screeningResponse.getResponseSeverity()); }
/** * 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 setter setResponseText(String). * * <p>Using reflection. */ public void testSetter_SetResponseText() { screeningResponse.setResponseText(defaultText); // Gets responseCode by reflection. Object responseText = AccuracyTestHelper.getPrivateField( ScreeningResponse.class, screeningResponse, "responseText"); assertEquals("The responseText should be set correctly.", defaultText, responseText); }
/** * Tests the accuracy of the setter setResponseSeverity(ResponseSeverity). * * <p>Using reflection. */ public void testSetter_SetResponseSeverity() { screeningResponse.setResponseSeverity(responseSeverity); // Gets responseSeverity by reflection. Object resp = AccuracyTestHelper.getPrivateField( ScreeningResponse.class, screeningResponse, "responseSeverity"); assertEquals("The responseSeverity should be set correctly.", responseSeverity, resp); }
/** * 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()); }