BlockfaceRequest extends CountyRequest { @Override public String summarize() { return String.format("blockface [onStreet=%s, crossStreetOne=%s, crossStreetTwo=%s, borough=%s]", getOnStreet(), getCrossStreetOne(), getCrossStreetTwo(), getBorough()); } BlockfaceRequest();  BlockfaceRequest(BlockfaceRequest anotherRequest); String getOnStreet(); String getCrossStreetOne(); String getCrossStreetTwo(); InputValue getOnStreetInputValue(); void setOnStreetInputValue(InputValue onStreetInputValue); InputValue getCrossStreetOneInputValue(); void setCrossStreetOneInputValue(InputValue crossStreetOneInputValue); InputValue getCrossStreetTwoInputValue(); void setCrossStreetTwoInputValue(InputValue crossStreetTwoInputValue); @Override String toString(); @Override boolean containsAssignedValue(); @Override String summarize();  }
@Test public void testSummarize() { BlockfaceRequest request = new BlockfaceRequest(); assertThat(request.summarize()).isEqualTo("blockface [onStreet=null, crossStreetOne=null, crossStreetTwo=null, borough=null]"); request.setOnStreetInputValue(new InputValue(TokenType.ON_STREET, "bway")); request.setCrossStreetOneInputValue(new InputValue(TokenType.ON_STREET, "w 100 st")); request.setCrossStreetTwoInputValue(new InputValue(TokenType.ON_STREET, "w 101 st")); request.setBoroughInputValue(new InputValue(TokenType.BOROUGH_NAME,"manhattan")); assertThat(request.summarize()).isEqualTo("blockface [onStreet=bway, crossStreetOne=w 100 st, crossStreetTwo=w 101 st, borough=manhattan]"); }