コード例 #1
0
 /** test remove profile */
 public void testRemoveProfileThatIsntDefault() {
   Profile gpProfile = manager.getProfileForClass(ProfileGoodPractices.class.getName());
   assertNotNull(gpProfile);
   assertTrue(manager.getRegisteredProfiles().contains(gpProfile));
   manager.removeProfile(gpProfile);
   assertFalse(manager.getRegisteredProfiles().contains(gpProfile));
 }
コード例 #2
0
 /** Test remove the base UML profile. */
 public void testRemoveDefaultProfile() {
   Profile umlProfile = manager.getProfileForClass(ProfileUML.class.getName());
   assertNotNull(umlProfile);
   assertTrue(manager.getRegisteredProfiles().contains(umlProfile));
   assertTrue(manager.getDefaultProfiles().contains(umlProfile));
   manager.removeProfile(umlProfile);
   assertTrue(manager.getRegisteredProfiles().contains(umlProfile));
   assertTrue(manager.getDefaultProfiles().contains(umlProfile));
 }