@Test public void accuratelyImplementsTheContractForTheValuesMethod(){ WWWAuthenticateField field = new WWWAuthenticateField(WWWAuthenticateField.Method.Basic, "Secure Area"); String value = field.value(); Assert.assertEquals("Basic realm=Secure Area", value); }
@Override public String value() { return method.name() + " realm=" + realmName; }
WWWAuthenticateField extends HeaderField { @Override public String value() { return method.name() + " realm=" + realmName; } }
WWWAuthenticateField extends HeaderField { @Override public String value() { return method.name() + " realm=" + realmName; } WWWAuthenticateField(Method method, String realmName); }
WWWAuthenticateField extends HeaderField { @Override public String value() { return method.name() + " realm=" + realmName; } WWWAuthenticateField(Method method, String realmName); @Override T accept(HeaderFieldVisitor<T> visitor); Method method(); String realmName(); @Override String name(); @Override String value(); }
WWWAuthenticateField extends HeaderField { @Override public String value() { return method.name() + " realm=" + realmName; } WWWAuthenticateField(Method method, String realmName); @Override T accept(HeaderFieldVisitor<T> visitor); Method method(); String realmName(); @Override String name(); @Override String value();  }