case "maxWorkerExecuteTimeUnit": if (member.getValue() instanceof String) { obj.setMaxWorkerExecuteTimeUnit(java.util.concurrent.TimeUnit.valueOf((String)member.getValue()));
options.setWorkerPoolSize(poolSize); options.setMaxWorkerExecuteTime(maxWorkerExecuteTime); options.setMaxWorkerExecuteTimeUnit(maxWorkerExecuteTimeUnit); JsonObject json = options.toJson(); DeploymentOptions copy = new DeploymentOptions(json);
options.setWorkerPoolSize(poolSize); options.setMaxWorkerExecuteTime(maxWorkerExecuteTime); options.setMaxWorkerExecuteTimeUnit(maxWorkerExecuteTimeUnit); DeploymentOptions copy = new DeploymentOptions(options); assertEquals(worker, copy.isWorker());
assertEquals(options, options.setMaxWorkerExecuteTime(maxWorkerExecuteTime)); assertEquals(maxWorkerExecuteTime, options.getMaxWorkerExecuteTime()); assertEquals(options, options.setMaxWorkerExecuteTimeUnit(TimeUnit.MILLISECONDS)); assertEquals(TimeUnit.MILLISECONDS, options.getMaxWorkerExecuteTimeUnit());
case "maxWorkerExecuteTimeUnit": if (member.getValue() instanceof String) { obj.setMaxWorkerExecuteTimeUnit(java.util.concurrent.TimeUnit.valueOf((String)member.getValue()));
options.setWorkerPoolSize(poolSize); options.setMaxWorkerExecuteTime(maxWorkerExecuteTime); options.setMaxWorkerExecuteTimeUnit(maxWorkerExecuteTimeUnit); JsonObject json = options.toJson(); DeploymentOptions copy = new DeploymentOptions(json);
options.setWorkerPoolSize(poolSize); options.setMaxWorkerExecuteTime(maxWorkerExecuteTime); options.setMaxWorkerExecuteTimeUnit(maxWorkerExecuteTimeUnit); DeploymentOptions copy = new DeploymentOptions(options); assertEquals(worker, copy.isWorker());
assertEquals(options, options.setMaxWorkerExecuteTime(maxWorkerExecuteTime)); assertEquals(maxWorkerExecuteTime, options.getMaxWorkerExecuteTime()); assertEquals(options, options.setMaxWorkerExecuteTimeUnit(TimeUnit.MILLISECONDS)); assertEquals(TimeUnit.MILLISECONDS, options.getMaxWorkerExecuteTimeUnit());