@Test public void nullSelectionIsNotAcceptable() throws Exception { ImmutableNegotiationResult sut=new ImmutableNegotiationResult(null,null,errorVariant,alternatives); assertThat(sut.isAcceptable(),equalTo(false)); }
@Override public boolean isAcceptable() { return this.variant != null; }
ImmutableNegotiationResult implements NegotiationResult { @Override public boolean isAcceptable() { return this.variant != null; } }
ImmutableNegotiationResult implements NegotiationResult { @Override public boolean isAcceptable() { return this.variant != null; } ImmutableNegotiationResult(final ImmutableVariant variant, ImmutableQuality quality, final ImmutableVariant errorVariant, ImmutableAlternatives alternatives); }
ImmutableNegotiationResult implements NegotiationResult { @Override public boolean isAcceptable() { return this.variant != null; } ImmutableNegotiationResult(final ImmutableVariant variant, ImmutableQuality quality, final ImmutableVariant errorVariant, ImmutableAlternatives alternatives); @Override boolean isAcceptable(); @Override ImmutableVariant variant(); @Override ImmutableQuality quality(); @Override ImmutableAlternatives alternatives(); @Override Multimap<String,String> responseHeaders(final boolean accepted); }
ImmutableNegotiationResult implements NegotiationResult { @Override public boolean isAcceptable() { return this.variant != null; } ImmutableNegotiationResult(final ImmutableVariant variant, ImmutableQuality quality, final ImmutableVariant errorVariant, ImmutableAlternatives alternatives); @Override boolean isAcceptable(); @Override ImmutableVariant variant(); @Override ImmutableQuality quality(); @Override ImmutableAlternatives alternatives(); @Override Multimap<String,String> responseHeaders(final boolean accepted);  }