AchievementManagerTest - UQcsse3200/2024-studio-2 GitHub Wiki
The AchievementManagerTest verifies proper loading, saving, and retrieval of achievements. Below you can find all the tests.
Testing Plan
Initialisation
@BeforeEach
void setup() {
Achievements.clearState();
}
Tests
-
testAchievementsLoaded():
Verifies that achievements are correctly loaded from the config. -
testAchievementsSavedAndLoadedCorrectly():
Ensures a newly added achievement is saved, reloaded, and restored. -
containsAchievement():
A helper method that checks if a list of achievements contains an achievement with a specified quest name.