コード例 #1
0
 @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());
 }
コード例 #2
0
 @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());
 }
コード例 #3
0
 @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());
 }