Class TestEntityFactory
java.lang.Object
it.tidalwave.datamanager.dao.impl.jpa.TestEntityFactory
- Author:
- Fabrizio Giudici
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateBackupEntities
(List<? extends ManagedFileEntity> managedFileEntities, int backupEntityCount, int maxBackupFiles) createBackupEntity
(int i, List<? extends ManagedFileEntity> managedFileEntities, int maxBackupFiles) createBackupFileEntity
(ManagedFileEntity managedFile) createFingerprintEntity
(String fileId) createManagedFileEntities
(int maxManagedFiles, int maxFingerprints) createManagedFileEntity
(String path, int fingerprintCount) void
dumpToYaml
(Object object, Path path)
-
Constructor Details
-
TestEntityFactory
public TestEntityFactory()
-
-
Method Details
-
createManagedFileEntities
@Nonnull public List<ManagedFileEntity> createManagedFileEntities(int maxManagedFiles, int maxFingerprints) -
createFingerprintEntity
-
createManagedFileEntity
@Nonnull public ManagedFileEntity createManagedFileEntity(@Nonnull String path, int fingerprintCount) -
createBackupEntities
@Nonnull public List<BackupEntity> createBackupEntities(@Nonnull List<? extends ManagedFileEntity> managedFileEntities, int backupEntityCount, int maxBackupFiles) -
createBackupEntity
@Nonnull public BackupEntity createBackupEntity(int i, @Nonnull List<? extends ManagedFileEntity> managedFileEntities, int maxBackupFiles) -
createBackupFileEntity
-
dumpToYaml
- Throws:
IOException
-