예제 #1
0
 Object getUmlProfileModel() {
   if (ProfileFacade.isInitiated()) {
     try {
       umlProfileModel =
           ProfileFacade.getManager().getUMLProfile().getProfilePackages().iterator().next();
       TestCase.assertTrue(getFacade().isAModel(umlProfileModel));
     } catch (ProfileException e) {
       LOG.error("Exception", e);
     }
   }
   if (umlProfileModel == null) {
     umlProfileModel = getModelManagementFactory().createModel();
     getExtensionMechanismsFactory()
         .buildStereotype(umlProfileModel, STEREOTYPE_NAME_PROFILE, umlProfileModel);
   }
   return umlProfileModel;
 }
 private static ProfileManager getSomeProfileManager() {
   if (ProfileFacade.isInitiated()) {
     return ProfileFacade.getManager();
   }
   return new NullProfileManager();
 }
 protected void tearDown() throws Exception {
   ProfileFacade.reset();
   super.tearDown();
 }