@Test public void imagePresentTest() { // check that all images are not null when there should be an image present assertNotNull(myLabelProvider.getColumnImage(myTaskReview1, 0)); assertNotNull(myLabelProvider.getColumnImage(myTaskReview1, 1)); assertNotNull(myLabelProvider.getColumnImage(myTaskReview1, 2)); assertNotNull(myLabelProvider.getColumnImage(myTaskReview1, 3)); }
@Test public void imageNotPresentTests() { // check that all images are null when they should be assertNotNull(myLabelProvider.getColumnImage(myTaskReview1, 0)); assertNotNull(myLabelProvider.getColumnImage(myTaskReview1, 1)); assertNotNull(myLabelProvider.getColumnImage(myTaskReview1, 2)); assertNotNull(myLabelProvider.getColumnImage(myTaskReview1, 3)); assertEquals( CommonImages.getImage(CommonImages.OVERLAY_CLEAR), myLabelProvider.getColumnImage(myTaskReview1, 0)); assertEquals( CommonImages.getImage(CommonImages.OVERLAY_CLEAR), myLabelProvider.getColumnImage(myTaskReview1, 0)); assertEquals( CommonImages.getImage(CommonImages.OVERLAY_CLEAR), myLabelProvider.getColumnImage(myTaskReview1, 0)); assertEquals( CommonImages.getImage(CommonImages.OVERLAY_CLEAR), myLabelProvider.getColumnImage(myTaskReview1, 0)); }