コード例 #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;
 }
コード例 #2
0
 private static ProfileManager getSomeProfileManager() {
   if (ProfileFacade.isInitiated()) {
     return ProfileFacade.getManager();
   }
   return new NullProfileManager();
 }
コード例 #3
0
 protected void tearDown() throws Exception {
   ProfileFacade.reset();
   super.tearDown();
 }