Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Added Earth per issue #2 #3

Merged
merged 1 commit into from
Jun 29, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,11 @@ public class ImageService {
// Uncomment the following section of code so Earth appears
// and remember to update the unit tests in "ImageServiceTest.java"

/*
final Image earth = new Image();
earth.setSrc("./images/earth.png");
earth.setWidth(512);
earth.setHeight(512);
PLANETARY.add(earth);
*/

final Image jupiter = new Image();
jupiter.setSrc("./images/jupiter.png");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ public void testGetImages() {
assertNotNull(images);

// Only have one of the two lines below uncommented one at a time
assertEquals(3, images.size()); // Leave this line in for no Earth
// assertEquals(4, images.size()); // Uncomment this line for Earth
// assertEquals(3, images.size()); // Leave this line in for no Earth
assertEquals(4, images.size()); // Uncomment this line for Earth
}

@Test
Expand Down Expand Up @@ -88,12 +88,10 @@ public void testGetImagesSaturn() {
@Test
public void testGetImagesEarth() {
// Uncomment the following test when Earth is added
/*
List<Image> images = this.underTest.getImages();
Image earth = getByName(images, "earth.png");
assertEquals(512, earth.getWidth());
assertEquals(512, earth.getHeight());
*/
}

@Test
Expand Down