@Test public void Check_If_Tooltip_is_returned_if_only_fixture_tooltips_are_Found() { Tooltips toolTips = new Tooltips(System.getProperty("user.dir") + "/src/test/resources/Tooltip/TooltipData_default", System.getProperty("user.dir") + "/src/test/resources/Tooltip/TooltipData_default/toolchain2.jar"); String receivedResult = toolTips.getRandomTooltip(); assertThat(receivedResult).isNotEqualTo(null); }
public String getRandomTooltip() { if (tooltipsCache.size() != 0) { Random rand = new Random(); int pickedTip = rand.nextInt(tooltipsCache.size()); return tooltipsCache.get(pickedTip); } else { return null; } }
Tooltips { public String getRandomTooltip() { if (tooltipsCache.size() != 0) { Random rand = new Random(); int pickedTip = rand.nextInt(tooltipsCache.size()); return tooltipsCache.get(pickedTip); } else { return null; } } }
Tooltips { public String getRandomTooltip() { if (tooltipsCache.size() != 0) { Random rand = new Random(); int pickedTip = rand.nextInt(tooltipsCache.size()); return tooltipsCache.get(pickedTip); } else { return null; } } Tooltips(String tooltipPath, String bootstrapPath);  Tooltips(); }
Tooltips { public String getRandomTooltip() { if (tooltipsCache.size() != 0) { Random rand = new Random(); int pickedTip = rand.nextInt(tooltipsCache.size()); return tooltipsCache.get(pickedTip); } else { return null; } } Tooltips(String tooltipPath, String bootstrapPath);  Tooltips(); String getRandomTooltip(); }
Tooltips { public String getRandomTooltip() { if (tooltipsCache.size() != 0) { Random rand = new Random(); int pickedTip = rand.nextInt(tooltipsCache.size()); return tooltipsCache.get(pickedTip); } else { return null; } } Tooltips(String tooltipPath, String bootstrapPath);  Tooltips(); String getRandomTooltip();  }