From 96bfd4e02755b827e713b4059d5ba3a754a7e640 Mon Sep 17 00:00:00 2001 From: reusedname <155286845+reusedname@users.noreply.github.com> Date: Thu, 27 Feb 2025 22:48:38 +0500 Subject: [PATCH] update precondition test Equal models should 'give up' only to higher priority models --- .../test/java/ctbrec/recorder/RecordingPreconditionsTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/src/test/java/ctbrec/recorder/RecordingPreconditionsTest.java b/common/src/test/java/ctbrec/recorder/RecordingPreconditionsTest.java index 5efbc850..ad50f01c 100644 --- a/common/src/test/java/ctbrec/recorder/RecordingPreconditionsTest.java +++ b/common/src/test/java/ctbrec/recorder/RecordingPreconditionsTest.java @@ -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);