@Test void testSetSetupFile() { Assertions.assertThat(this.b.getSetupFile()).isNotPresent(); final FileEntity setupFile = new FileEntity(UUID.randomUUID().toString()); this.b.setSetupFile(setupFile); Assertions.assertThat(this.b.getSetupFile()).isPresent().contains(setupFile); this.b.setSetupFile(null); Assertions.assertThat(this.b.getSetupFile()).isNotPresent(); }
public void setSetupFile(@Nullable final FileEntity setupFile) { this.setupFile = setupFile; }
BaseEntity extends UniqueIdEntity implements BaseProjection, SetupFileProjection { public void setSetupFile(@Nullable final FileEntity setupFile) { this.setupFile = setupFile; } }
BaseEntity extends UniqueIdEntity implements BaseProjection, SetupFileProjection { public void setSetupFile(@Nullable final FileEntity setupFile) { this.setupFile = setupFile; } BaseEntity(); }
BaseEntity extends UniqueIdEntity implements BaseProjection, SetupFileProjection { public void setSetupFile(@Nullable final FileEntity setupFile) { this.setupFile = setupFile; } BaseEntity(); @Override Optional<String> getDescription(); void setDescription(@Nullable final String description); @Override Optional<JsonNode> getMetadata(); void setMetadata(@Nullable final JsonNode metadata); @Override Optional<FileEntity> getSetupFile(); void setSetupFile(@Nullable final FileEntity setupFile); @Override boolean equals(final Object o); @Override int hashCode(); }
BaseEntity extends UniqueIdEntity implements BaseProjection, SetupFileProjection { public void setSetupFile(@Nullable final FileEntity setupFile) { this.setupFile = setupFile; } BaseEntity(); @Override Optional<String> getDescription(); void setDescription(@Nullable final String description); @Override Optional<JsonNode> getMetadata(); void setMetadata(@Nullable final JsonNode metadata); @Override Optional<FileEntity> getSetupFile(); void setSetupFile(@Nullable final FileEntity setupFile); @Override boolean equals(final Object o); @Override int hashCode();  }