@Test public void parseSkillsWithNOTExistingSkill() { final ProfileManager manager = new BavariaSystemsProfileManager(); manager.setProfileDir("test/example/valid"); final Collection<Profile> profiles = manager.getProfilesForSkill("C#", SkillLevel.BEGINNER); assertTrue("No profiles should be found.", profiles.isEmpty()); }
@Test public void parseSkillsWithAnyExistingButTooLowSkill() { final ProfileManager manager = new BavariaSystemsProfileManager(); manager.setProfileDir("test/example/valid"); final Collection<Profile> profiles = manager.getProfilesForSkill("Eclipse", SkillLevel.PROFESSIONAL); assertTrue("No profiles should be found.", profiles.isEmpty()); }
@Test public void parseSkillsWithAnyExistingSkill() { final ProfileManager manager = new BavariaSystemsProfileManager(); manager.setProfileDir("test/example/valid"); final Collection<Profile> profiles = manager.getProfilesForSkill("Eclipse", SkillLevel.BEGINNER); assertEquals("Wrong number of parsed profiles.", 1, profiles.size()); }