Skip to content

Commit

Permalink
progress
Browse files Browse the repository at this point in the history
  • Loading branch information
teletha committed Sep 4, 2024
1 parent 563fe06 commit 81eb4c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test/java/typewriter/api/Testable.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public interface Testable {
* @return
*/
default <M extends Identifiable, Q extends QueryExecutor<M, Signal<M>, ?, Q>> Q createEmptyDB(Class<M> type) {
return createEmptyDB(type, type.getName());
return createEmptyDB(type, random());
}

/**
Expand Down Expand Up @@ -59,7 +59,7 @@ public interface Testable {
* @return
*/
default <M extends Identifiable, Q extends RDB<M>> Q createEmptyRDB(Class<M> type) {
return (Q) (Object) createEmptyDB(type, type.getName());
return (Q) (Object) createEmptyDB(type, random());
}

/**
Expand All @@ -82,7 +82,7 @@ default <M extends Identifiable, Q extends RDB<M>> Q createRDB(M... models) {
* @return
*/
static String random() {
return RandomStringUtils.secure().nextAlphabetic(15);
return RandomStringUtils.secure().nextAlphabetic(10);
}

/**
Expand Down

0 comments on commit 81eb4c4

Please sign in to comment.