ParametersField extends JPanel { public String getText() { return textField.getText(); } ParametersField(RestRequestInterface request); String getText(); void setText(String text); @Override void setToolTipText(String text); void updateTextField(); static final String PARAMETERS_FIELD; }
@Test public void displaysQueryParameter() throws Exception { assertThat(parametersField.getText(), endsWith("?" + QUERY_PARAM_NAME + "=" + QUERY_PARAM_VALUE)); }
@Test public void displaysMatrixParameter() throws Exception { assertThat(parametersField.getText(), startsWith(";" + MATRIX_PARAM_NAME + "=" + MATRIX_PARAM_VALUE)); }