will(returnValue(projectNamed("myTarget")));
never(contact).makeJsonRestCall(with(any(String.class)), with(BuildTypeDetail.class));
}});
final TargetDigestGroup digest = spy.targetsConstituting(new Feature("myFeatureName", "myEndpoint", new CiServerType("TEAMCITY")));
context.assertIsSatisfied();
context.checking(new Expectations() {{
oneOf(contact).makeJsonRestCall(with(any(String.class)), with(BuildTypeDetail.class));
will(returnValue(buildTypeDetail()));
allowing(contact).makeJsonRestCall(with(any(String.class)), with(Builds.class));
will(returnValue(new Builds()));
}});
spy.statusOf(digest.iterator().next().id());
context.assertIsSatisfied();
}