Code example for AtomicReference

Methods: set

0
  } 
 
  @Test 
  public void testNullWorkerSetupData() throws Exception 
  { 
    workerSetupData.set(null);
    EasyMock.replay(autoScalingStrategy);
 
    boolean terminatedSomething = simpleResourceManagementStrategy.doTerminate(
        Arrays.<RemoteTaskRunnerWorkItem>asList(
            new RemoteTaskRunnerWorkItem(testTask.getId(), null, null).withQueueInsertionTime(new DateTime())
        ), 
        Arrays.<ZkWorker>asList(
            new TestZkWorker(null) 
        ) 
    ); 
 
    boolean provisionedSomething = simpleResourceManagementStrategy.doProvision(
        Arrays.<RemoteTaskRunnerWorkItem>asList(
            new RemoteTaskRunnerWorkItem(testTask.getId(), null, null).withQueueInsertionTime(new DateTime())
        ),