From ffd65cc96f5b00e8e12f4509fa0ea1eb9b6962d1 Mon Sep 17 00:00:00 2001 From: JPANZO Date: Tue, 15 Feb 2022 17:49:29 +0100 Subject: [PATCH] test+productive code for case:2 of method prev in CDPlayer created. --- .../java/device/cdPlayer/CDPlayerTest.java | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/src/test/java/device/cdPlayer/CDPlayerTest.java b/src/test/java/device/cdPlayer/CDPlayerTest.java index fdd833a..a11ff58 100644 --- a/src/test/java/device/cdPlayer/CDPlayerTest.java +++ b/src/test/java/device/cdPlayer/CDPlayerTest.java @@ -200,8 +200,18 @@ class CDPlayerTest { @ParameterizedTest @MethodSource("prevTestData") void prevTest(String testName,String testDirection, CDPlayer _cdPlayer,int anzClicks, String expectedResult){ - for (int i = 0; i FirstSongSelected", "FirstSongSelected", cdPlayer1, 1, cdPlayer1.getSongByNumber(0)) + Arguments.of("[getActualPlayTrack() after 1x prev() starting by secondSong] => FirstSongSelected", "StartingBySecondSong", cdPlayer1, 1, cdPlayer1.getSongByNumber(0)), + Arguments.of("[getActualPlayTrack() after 2x prev() starting by thirdSong] => FirstSongSelected", "StartingByThirdSong", cdPlayer1, 2, cdPlayer1.getSongByNumber(0)) ); } } \ No newline at end of file