update precondition test

Equal models should 'give up' only to higher priority models
This commit is contained in:
reusedname 2025-02-27 22:48:38 +05:00
parent db13cd09cc
commit 96bfd4e027
1 changed files with 2 additions and 0 deletions

View File

@ -159,12 +159,14 @@ class RecordingPreconditionsTest {
when(mockita.toString()).thenReturn("Mockita Boobilicious");
when(mockita.isOnline(true)).thenReturn(true);
when(mockita.getUrl()).thenReturn("http://localhost/mockita");
when(mockita.getPriority()).thenReturn(0);
Model theOtherOne = mock(Model.class);
when(theOtherOne.getRecordUntil()).thenReturn(Instant.MAX);
when(theOtherOne.toString()).thenReturn("The Other One");
when(theOtherOne.isOnline(true)).thenReturn(true);
when(theOtherOne.getUrl()).thenReturn("http://localhost/theOtherOne");
when(theOtherOne.getPriority()).thenReturn(10);
ModelGroup group = new ModelGroup();
group.add(theOtherOne);