use of org.apache.flink.runtime.jobmaster.slotpool.TestingPhysicalSlotPayload in project flink by apache.
the class SharedSlotTest method testConstructorFailsIfSlotAlreadyHasAssignedPayload.
@Test(expected = IllegalStateException.class)
public void testConstructorFailsIfSlotAlreadyHasAssignedPayload() {
final TestingPhysicalSlot physicalSlot = TestingPhysicalSlot.builder().build();
physicalSlot.tryAssignPayload(new TestingPhysicalSlotPayload());
new SharedSlot(new SlotRequestId(), physicalSlot, false, () -> {
});
}
Aggregations