@@ -494,13 +494,21 @@ private static List<String> milestoneCrossedBy(int barMax, int startPoints, Send
494494
495495 @ Test
496496 void checkPrintsEveryFieldOfThePlayersDay () {
497- ActivityManager manager = manager ();
497+ // daily-cap 1 makes worth(3) = 1, distinct from rawWorth(3) = 3, so
498+ // the "before any cap" text below is checked against the uncapped
499+ // figure the message promises rather than the capped one - which
500+ // 'check' must read off config's own def, not merely echo the count
501+ ActivityManager manager = TestManagers .manager (
502+ new ActivityDef ("vote" , "Vote" , Material .PAPER , null , 1 , 1 , 1 ),
503+ new ActivityDef ("quest" , "Quest" , Material .PAPER , null , 2 , 1 , 0 ));
504+ TestManagers .messages (manager );
505+ TestManagers .rerollsPerDay (manager , 1 );
498506 UUID player = UUID .randomUUID ();
499507 manager .reveal (player , manager .tasks (player ).tasks ().indexOf ("vote" ));
500508 PlayerData data = manager .getStore ().peek (player );
501509 // Straight through the POJO: crediting a point through the manager
502510 // would announce it, and that needs a running server
503- data .record (3 , new ActivityDef ("vote" , "Vote" , Material .PAPER , null , 2 , 1 , 0 ), 50 , 10 , List .of (10 , 20 ));
511+ data .record (3 , new ActivityDef ("vote" , "Vote" , Material .PAPER , null , 1 , 1 , 1 ), 50 , 10 , List .of (10 , 20 ));
504512
505513 Sender sender = admin ();
506514 command (manager , player , "Steve" ).onCommand (sender .bukkit , null , "activity" , new String [] {"check" , "Steve" });
@@ -521,7 +529,7 @@ void checkPrintsEveryFieldOfThePlayersDay() {
521529 assertTrue (out .contains ("Vote" ), out );
522530 assertTrue (out .contains ("revealed" ), out );
523531 assertTrue (out .contains ("count 3" ), out );
524- assertTrue (out .contains ("that count is worth 1 points before any cap" ), out );
532+ assertTrue (out .contains ("that count is worth 3 points before any cap" ), out );
525533 // and every slot of the draw is listed
526534 assertEquals (data .tasks ().size (),
527535 sender .sent .stream ().filter (line -> line .contains ("revealed" ) || line .contains ("hidden" )).count ());
0 commit comments