@Test void canBuildApplication() { final Application application = new Application.Builder(NAME, USER, VERSION, ApplicationStatus.ACTIVE).build(); Assertions.assertThat(application.getName()).isEqualTo(NAME); Assertions.assertThat(application.getUser()).isEqualTo(USER); Assertions.assertThat(application.getVersion()).isEqualTo(VERSION); Assertions.assertThat(application.getStatus()).isEqualTo(ApplicationStatus.ACTIVE); Assertions.assertThat(application.getDependencies()).isEmpty(); Assertions.assertThat(application.getType().isPresent()).isFalse(); Assertions.assertThat(application.getSetupFile().isPresent()).isFalse(); Assertions.assertThat(application.getConfigs()).isEmpty(); Assertions.assertThat(application.getCreated().isPresent()).isFalse(); Assertions.assertThat(application.getDescription().isPresent()).isFalse(); Assertions.assertThat(application.getId().isPresent()).isFalse(); Assertions.assertThat(application.getTags()).isEmpty(); Assertions.assertThat(application.getUpdated().isPresent()).isFalse(); Assertions.assertThat(application.getMetadata().isPresent()).isFalse(); }
public Optional<String> getType() { return Optional.ofNullable(this.type); }
Application extends ExecutionEnvironmentDTO { public Optional<String> getType() { return Optional.ofNullable(this.type); } }
Application extends ExecutionEnvironmentDTO { public Optional<String> getType() { return Optional.ofNullable(this.type); } protected  Application(final Builder builder); }
Application extends ExecutionEnvironmentDTO { public Optional<String> getType() { return Optional.ofNullable(this.type); } protected  Application(final Builder builder); Optional<String> getType(); }
Application extends ExecutionEnvironmentDTO { public Optional<String> getType() { return Optional.ofNullable(this.type); } protected  Application(final Builder builder); Optional<String> getType();  }