@Test void canBuildCommandWithDeprecatedConstructor() { final Command command = new Command.Builder(NAME, USER, VERSION, CommandStatus.ACTIVE, EXECUTABLE, CHECK_DELAY).build(); Assertions.assertThat(command.getName()).isEqualTo(NAME); Assertions.assertThat(command.getUser()).isEqualTo(USER); Assertions.assertThat(command.getVersion()).isEqualTo(VERSION); Assertions.assertThat(command.getStatus()).isEqualTo(CommandStatus.ACTIVE); Assertions.assertThat(command.getExecutable()).isEqualTo(EXECUTABLE); Assertions.assertThat(command.getExecutableAndArguments()).isEqualTo(EXECUTABLE_AND_ARGS); Assertions.assertThat(command.getSetupFile().isPresent()).isFalse(); Assertions.assertThat(command.getConfigs()).isEmpty(); Assertions.assertThat(command.getDependencies()).isEmpty(); Assertions.assertThat(command.getCreated().isPresent()).isFalse(); Assertions.assertThat(command.getDescription().isPresent()).isFalse(); Assertions.assertThat(command.getId().isPresent()).isFalse(); Assertions.assertThat(command.getTags()).isEmpty(); Assertions.assertThat(command.getUpdated().isPresent()).isFalse(); Assertions.assertThat(command.getMemory().isPresent()).isFalse(); Assertions.assertThat(command.getClusterCriteria()).isEmpty(); }
public Optional<Integer> getMemory() { return Optional.ofNullable(this.memory); }
Command extends ExecutionEnvironmentDTO { public Optional<Integer> getMemory() { return Optional.ofNullable(this.memory); } }
Command extends ExecutionEnvironmentDTO { public Optional<Integer> getMemory() { return Optional.ofNullable(this.memory); } protected  Command(@Valid final Builder builder); }
Command extends ExecutionEnvironmentDTO { public Optional<Integer> getMemory() { return Optional.ofNullable(this.memory); } protected  Command(@Valid final Builder builder); Optional<Integer> getMemory(); }
Command extends ExecutionEnvironmentDTO { public Optional<Integer> getMemory() { return Optional.ofNullable(this.memory); } protected  Command(@Valid final Builder builder); Optional<Integer> getMemory(); static final long DEFAULT_CHECK_DELAY; }