Skip to content

Commit

Permalink
Development: Fix server style (#9132)
Browse files Browse the repository at this point in the history
  • Loading branch information
Strohgelaender authored Jul 28, 2024
1 parent d9b649a commit 0902e75
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ public String toString() {
return "QuizSubmission{" + "id=" + getId() + ", scoreInPoints='" + getScoreInPoints() + "'" + "}";
}

/**
* Remove details that should not be sent to the client from the quiz questions.
*/
public void filterForStudentsDuringQuiz() {
for (SubmittedAnswer submittedAnswer : getSubmittedAnswers()) {
if (submittedAnswer.getQuizQuestion() != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ private LsRemoteCommand lsRemoteCommand() {
return authenticate(Git.lsRemoteRepository());
}

abstract protected <C extends GitCommand<?>> C authenticate(TransportCommand<C, ?> command);
protected abstract <C extends GitCommand<?>> C authenticate(TransportCommand<C, ?> command);

protected CloneCommand cloneCommand() {
return authenticate(Git.cloneRepository());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,43 +117,43 @@ abstract class AbstractTutorialGroupIntegrationTest extends AbstractSpringIntegr

Integer defaultSessionEndHour = 12;

final static LocalDate FIRST_AUGUST_MONDAY = LocalDate.of(2022, 8, 1);
static final LocalDate FIRST_AUGUST_MONDAY = LocalDate.of(2022, 8, 1);

final static LocalDate SECOND_AUGUST_MONDAY = LocalDate.of(2022, 8, 8);
static final LocalDate SECOND_AUGUST_MONDAY = LocalDate.of(2022, 8, 8);

final static LocalDate THIRD_AUGUST_MONDAY = LocalDate.of(2022, 8, 15);
static final LocalDate THIRD_AUGUST_MONDAY = LocalDate.of(2022, 8, 15);

final static LocalDate FOURTH_AUGUST_MONDAY = LocalDate.of(2022, 8, 22);
static final LocalDate FOURTH_AUGUST_MONDAY = LocalDate.of(2022, 8, 22);

final static LocalDate FIRST_SEPTEMBER_MONDAY = LocalDate.of(2022, 9, 5);
static final LocalDate FIRST_SEPTEMBER_MONDAY = LocalDate.of(2022, 9, 5);

final static LocalDateTime FIRST_AUGUST_MONDAY_00_00 = LocalDateTime.of(2022, 8, 1, 0, 0);
static final LocalDateTime FIRST_AUGUST_MONDAY_00_00 = LocalDateTime.of(2022, 8, 1, 0, 0);

final static LocalDateTime FIRST_AUGUST_MONDAY_08_00 = LocalDateTime.of(2022, 8, 1, 8, 0);
static final LocalDateTime FIRST_AUGUST_MONDAY_08_00 = LocalDateTime.of(2022, 8, 1, 8, 0);

final static LocalDateTime FIRST_AUGUST_MONDAY_10_00 = LocalDateTime.of(2022, 8, 1, 10, 0);
static final LocalDateTime FIRST_AUGUST_MONDAY_10_00 = LocalDateTime.of(2022, 8, 1, 10, 0);

final static LocalDateTime FIRST_AUGUST_MONDAY_11_00 = LocalDateTime.of(2022, 8, 1, 11, 0);
static final LocalDateTime FIRST_AUGUST_MONDAY_11_00 = LocalDateTime.of(2022, 8, 1, 11, 0);

final static LocalDateTime FIRST_AUGUST_MONDAY_12_00 = LocalDateTime.of(2022, 8, 1, 12, 0);
static final LocalDateTime FIRST_AUGUST_MONDAY_12_00 = LocalDateTime.of(2022, 8, 1, 12, 0);

final static LocalDateTime FIRST_AUGUST_MONDAY_13_00 = LocalDateTime.of(2022, 8, 1, 13, 0);
static final LocalDateTime FIRST_AUGUST_MONDAY_13_00 = LocalDateTime.of(2022, 8, 1, 13, 0);

final static LocalDateTime FIRST_AUGUST_MONDAY_18_00 = LocalDateTime.of(2022, 8, 1, 18, 0);
static final LocalDateTime FIRST_AUGUST_MONDAY_18_00 = LocalDateTime.of(2022, 8, 1, 18, 0);

final static LocalDateTime FIRST_AUGUST_MONDAY_23_59 = LocalDateTime.of(2022, 8, 1, 23, 59);
static final LocalDateTime FIRST_AUGUST_MONDAY_23_59 = LocalDateTime.of(2022, 8, 1, 23, 59);

final static LocalDateTime SECOND_AUGUST_MONDAY_00_00 = LocalDateTime.of(2022, 8, 8, 0, 0);
static final LocalDateTime SECOND_AUGUST_MONDAY_00_00 = LocalDateTime.of(2022, 8, 8, 0, 0);

final static LocalDateTime SECOND_AUGUST_MONDAY_23_59 = LocalDateTime.of(2022, 8, 8, 23, 59);
static final LocalDateTime SECOND_AUGUST_MONDAY_23_59 = LocalDateTime.of(2022, 8, 8, 23, 59);

final static LocalDateTime THIRD_AUGUST_MONDAY_00_00 = LocalDateTime.of(2022, 8, 15, 0, 0);
static final LocalDateTime THIRD_AUGUST_MONDAY_00_00 = LocalDateTime.of(2022, 8, 15, 0, 0);

final static LocalDateTime THIRD_AUGUST_MONDAY_23_59 = LocalDateTime.of(2022, 8, 15, 23, 59);
static final LocalDateTime THIRD_AUGUST_MONDAY_23_59 = LocalDateTime.of(2022, 8, 15, 23, 59);

final static LocalDateTime FOURTH_AUGUST_MONDAY_00_00 = LocalDateTime.of(2022, 8, 22, 0, 0);
static final LocalDateTime FOURTH_AUGUST_MONDAY_00_00 = LocalDateTime.of(2022, 8, 22, 0, 0);

final static LocalDateTime FIRST_SEPTEMBER_MONDAY_00_00 = LocalDateTime.of(2022, 9, 5, 0, 0);
static final LocalDateTime FIRST_SEPTEMBER_MONDAY_00_00 = LocalDateTime.of(2022, 9, 5, 0, 0);

@BeforeEach
void setupTestScenario() {
Expand Down

0 comments on commit 0902e75

Please sign in to comment.