@Test public void resolve_returns_result_on_builder() { Object builderResult = new Object(); when(mockSpecimenBuilder.create(String.class, this.context)).thenReturn(builderResult); Object result = this.context.resolve(String.class); assertSame(builderResult, result); }
@Override public Object resolve(Object request) { return this.builder.create(request, this); }
SpecimenBuilderContext implements SpecimenContext { @Override public Object resolve(Object request) { return this.builder.create(request, this); } }
SpecimenBuilderContext implements SpecimenContext { @Override public Object resolve(Object request) { return this.builder.create(request, this); } SpecimenBuilderContext(SpecimenBuilder builder); }
SpecimenBuilderContext implements SpecimenContext { @Override public Object resolve(Object request) { return this.builder.create(request, this); } SpecimenBuilderContext(SpecimenBuilder builder); @Override Object resolve(Object request); }
SpecimenBuilderContext implements SpecimenContext { @Override public Object resolve(Object request) { return this.builder.create(request, this); } SpecimenBuilderContext(SpecimenBuilder builder); @Override Object resolve(Object request);  }