@Test public void testFillQuotaInformation() { Locale.setDefault(new Locale("te", "ST")); LayoutController controller = createController(); assertEquals("30%", controller.quota.getText()); assertEquals(30, (int) controller.quotaBar.getMinWidth()); assertThat(controller.quotaDescription.getText(), containsString("300 MB")); }
void fillQuotaInformation(QuotaState quotaState) { if (quotaState == null) { quotaBlock.setVisible(false); quotaDescription.setVisible(false); return; } int ratio = getUsedRatioInPercent(quotaState); String quotaDescriptionText = getQuotaDescription(quotaState, resourceBundle.getString("quotaDescription")); quota.setText(ratio + "%"); quotaBar.setMinWidth(ratio); quotaDescription.setText(quotaDescriptionText); }
LayoutController extends AbstractController implements Initializable { void fillQuotaInformation(QuotaState quotaState) { if (quotaState == null) { quotaBlock.setVisible(false); quotaDescription.setVisible(false); return; } int ratio = getUsedRatioInPercent(quotaState); String quotaDescriptionText = getQuotaDescription(quotaState, resourceBundle.getString("quotaDescription")); quota.setText(ratio + "%"); quotaBar.setMinWidth(ratio); quotaDescription.setText(quotaDescriptionText); } }
LayoutController extends AbstractController implements Initializable { void fillQuotaInformation(QuotaState quotaState) { if (quotaState == null) { quotaBlock.setVisible(false); quotaDescription.setVisible(false); return; } int ratio = getUsedRatioInPercent(quotaState); String quotaDescriptionText = getQuotaDescription(quotaState, resourceBundle.getString("quotaDescription")); quota.setText(ratio + "%"); quotaBar.setMinWidth(ratio); quotaDescription.setText(quotaDescriptionText); }  }
LayoutController extends AbstractController implements Initializable { void fillQuotaInformation(QuotaState quotaState) { if (quotaState == null) { quotaBlock.setVisible(false); quotaDescription.setVisible(false); return; } int ratio = getUsedRatioInPercent(quotaState); String quotaDescriptionText = getQuotaDescription(quotaState, resourceBundle.getString("quotaDescription")); quota.setText(ratio + "%"); quotaBar.setMinWidth(ratio); quotaDescription.setText(quotaDescriptionText); }  @Override void initialize(URL location, ResourceBundle resources); Object getScroller(); Pane getWindow(); void openFaq(); void openInvite(); void openFeedback(); }
LayoutController extends AbstractController implements Initializable { void fillQuotaInformation(QuotaState quotaState) { if (quotaState == null) { quotaBlock.setVisible(false); quotaDescription.setVisible(false); return; } int ratio = getUsedRatioInPercent(quotaState); String quotaDescriptionText = getQuotaDescription(quotaState, resourceBundle.getString("quotaDescription")); quota.setText(ratio + "%"); quotaBar.setMinWidth(ratio); quotaDescription.setText(quotaDescriptionText); }  @Override void initialize(URL location, ResourceBundle resources); Object getScroller(); Pane getWindow(); void openFaq(); void openInvite(); void openFeedback(); @FXML
    public Label alias; @FXML
    public Label mail; public QuotaState quotaState; }