use of com.mesosphere.sdk.offer.OperationRecorder in project dcos-commons by mesosphere.
the class UninstallRecorderTest method testHandlingOfUnexpectedOfferRecommendation.
@Test
public void testHandlingOfUnexpectedOfferRecommendation() throws Exception {
Protos.Resource resource = ResourceTestUtils.getUnreservedCpus(1.0);
OfferRecommendation unsupportedOfferRecommendation = new CreateOfferRecommendation(null, resource);
StateStore mockStateStore = mock(StateStore.class);
OperationRecorder operationRecorder = new UninstallRecorder(mockStateStore, null);
// should just return without error
operationRecorder.record(unsupportedOfferRecommendation);
}
Aggregations