@Test public void returns_false_if_inner_specification_returns_true() { when(this.mockInnerSpecification.isSatisfiedBy(this.request)).thenReturn(true); boolean isSatisfied = this.specification.isSatisfiedBy(this.request); assertFalse(isSatisfied); }
@Override public boolean isSatisfiedBy(Object request) { return !this.inner.isSatisfiedBy(request); }
InverseSpecification implements Specification { @Override public boolean isSatisfiedBy(Object request) { return !this.inner.isSatisfiedBy(request); } }
InverseSpecification implements Specification { @Override public boolean isSatisfiedBy(Object request) { return !this.inner.isSatisfiedBy(request); } InverseSpecification(Specification inner); }
InverseSpecification implements Specification { @Override public boolean isSatisfiedBy(Object request) { return !this.inner.isSatisfiedBy(request); } InverseSpecification(Specification inner); @Override boolean isSatisfiedBy(Object request); }
InverseSpecification implements Specification { @Override public boolean isSatisfiedBy(Object request) { return !this.inner.isSatisfiedBy(request); } InverseSpecification(Specification inner); @Override boolean isSatisfiedBy(Object request);  }