diff --git a/src/test/java/guitests/guihandles/BrowserPanelHandle.java b/src/test/java/guitests/guihandles/BrowserPanelHandle.java index 401e1cb00cf8..698c5d5d3dc5 100644 --- a/src/test/java/guitests/guihandles/BrowserPanelHandle.java +++ b/src/test/java/guitests/guihandles/BrowserPanelHandle.java @@ -53,13 +53,47 @@ public BrowserPanelHandle(Node browserPanelNode) { prevStatus = BrowserPanel.DEFAULT_STATUS_LABEL; prevUsageCount = BrowserPanel.DEFAULT_USAGE_COUNT_LABEL; } + /** + * Get the image. + */ + public Image getImage() { + return imageView.getImage(); + } + + /** + * Get the apparel name. + */ + public String getName() { + return nameLabel.getText(); + } + + /** + * Get the clothing type for the apparel. + */ + public String getClothingType() { + return clothingTypeLabel.getText(); + } - public Image getImage() { return imageView.getImage(); } - public String getName() { return nameLabel.getText(); } - public String getClothingType() { return clothingTypeLabel.getText(); } - public String getColor() { return colorLabel.getText(); } - public String getStatus() { return statusLabel.getText(); } - public String getUsageCount() { return usageCountLabel.getText(); } + /** + * Get the color of the apparel. + */ + public String getColor() { + return colorLabel.getText(); + } + + /** + * Get the status of the apparel. + */ + public String getStatus() { + return statusLabel.getText(); + } + + /** + * Get the usage count for the apparel. + */ + public String getUsageCount() { + return usageCountLabel.getText(); + } /** * Remember the state of the selected apparel diff --git a/src/test/java/seedu/address/ui/BrowserPanelTest.java b/src/test/java/seedu/address/ui/BrowserPanelTest.java index 3a0b9b67a18c..dbe96101a8e1 100644 --- a/src/test/java/seedu/address/ui/BrowserPanelTest.java +++ b/src/test/java/seedu/address/ui/BrowserPanelTest.java @@ -1,11 +1,6 @@ package seedu.address.ui; -import static guitests.guihandles.WebViewUtil.waitUntilBrowserLoaded; -import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; -import static seedu.address.testutil.TypicalApparels.SHIRT1; - -import java.net.URL; import org.junit.Before; import org.junit.Test;