Skip to content

Commit

Permalink
🧪 add test data which break the conference session view
Browse files Browse the repository at this point in the history
Signed-off-by: Marcus Fihlon <[email protected]>
  • Loading branch information
McPringle committed Mar 27, 2024
1 parent 79f0a8c commit 882c3c7
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
package swiss.fihlon.apus.service;

import jakarta.annotation.PreDestroy;
import org.apache.commons.lang3.RandomStringUtils;
import org.apache.commons.lang3.RandomUtils;
import org.jetbrains.annotations.NotNull;
import org.springframework.scheduling.TaskScheduler;
import org.springframework.stereotype.Service;
Expand Down Expand Up @@ -118,9 +120,9 @@ private List<Session> generateSampleData() {
final String id = UUID.randomUUID().toString();
final LocalDateTime endDate = startDate.plusMinutes(sampleDuration);
final String room = String.valueOf((char) ('A' + counter));
// final String random = RandomStringUtils.random(RandomUtils.nextInt(1, 150), "abcd efghi jklmn opqrst uvwxyz ");
// final String title = random + " Test Session #" + index;
final String title = "Test Session #" + index;
final String random = RandomStringUtils.random(RandomUtils.nextInt(1, 150), "abcd efghi jklmn opqrst uvwxyz ");
final String title = random + " Test Session #" + index;
//final String title = "Test Session #" + index;
final String speaker = "Speaker #" + (counter + 1);
sampleData.add(new Session(id, startDate, endDate, room, title, speaker));
if (sampleData.size() >= sampleDataSize) {
Expand Down

0 comments on commit 882c3c7

Please sign in to comment.