Skip to content

Commit

Permalink
Reduced a bit of noise in a test: we don't care about specific partic…
Browse files Browse the repository at this point in the history
…ipant names
  • Loading branch information
tedyoung committed Nov 10, 2024
1 parent 365d866 commit a5a6402
Showing 1 changed file with 4 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,24 +1,13 @@
package com.jitterted.mobreg.adapter.in.web.member;

import com.jitterted.mobreg.adapter.in.web.admin.ParticipantsTransformer;
import com.jitterted.mobreg.application.EnsembleTimerHolder;
import com.jitterted.mobreg.application.NoOpShuffler;
import com.jitterted.mobreg.application.OutputTracker;
import com.jitterted.mobreg.application.TestEnsembleServiceBuilder;
import com.jitterted.mobreg.application.TimerControlData;
import com.jitterted.mobreg.domain.CountdownTimer;
import com.jitterted.mobreg.domain.Ensemble;
import com.jitterted.mobreg.domain.EnsembleBuilder;
import com.jitterted.mobreg.domain.EnsembleFactory;
import com.jitterted.mobreg.domain.EnsembleId;
import com.jitterted.mobreg.domain.EnsembleTimer;
import com.jitterted.mobreg.domain.EnsembleTimerFactory;
import com.jitterted.mobreg.domain.Member;
import com.jitterted.mobreg.application.*;
import com.jitterted.mobreg.domain.*;
import org.junit.jupiter.api.Test;
import org.springframework.ui.ConcurrentModel;
import org.springframework.ui.Model;

import static org.assertj.core.api.Assertions.*;
import static org.assertj.core.api.Assertions.assertThat;

class EnsembleTimerControllerTest {

Expand All @@ -27,9 +16,7 @@ void viewTimerHasParticipantsInTheViewModelFromTheSpecifiedEnsembleAndTimerNotSt
Ensemble ensemble = EnsembleFactory.withStartTimeNowAndIdAndName(153, "Dolphin Ensemble");
TestEnsembleServiceBuilder builder = new TestEnsembleServiceBuilder()
.saveEnsemble(ensemble)
.saveMemberAndAccept("Jane", "ghjane")
.saveMemberAndAccept("Paul", "ghpaul")
.saveMemberAndAccept("Sally", "ghsally");
.withThreeParticipants();
EnsembleTimerHolder ensembleTimerHolder = EnsembleTimerHolder.createNull(builder.ensembleRepository(), builder.memberRepository());
ensembleTimerHolder.createTimerFor(EnsembleId.of(153), new NoOpShuffler());
EnsembleTimerController ensembleTimerController = new EnsembleTimerController(ensembleTimerHolder);
Expand Down

0 comments on commit a5a6402

Please sign in to comment.