Package com.mockey.model

Examples of com.mockey.model.ConflictInfo.addConflict()


        if (!serviceA.getId().equals(serviceB.getId())) {

          // NAME
          if (MockeyXmlFileManager.getSafeForFileSystemName(serviceA.getServiceName()).equals(
              MockeyXmlFileManager.getSafeForFileSystemName(serviceB.getServiceName()))) {
            conflictInfo.addConflict(serviceA, serviceB, "Service with name'" + serviceA.getServiceName()
                + "' compared to service with name: '" + serviceB.getServiceName() + "'. Info: " + MATCH_NAME);
          }

          // REAL URLs
          for (Url urlA : serviceA.getRealServiceUrls()) {
View Full Code Here


          // REAL URLs
          for (Url urlA : serviceA.getRealServiceUrls()) {
            for (Url urlB : serviceB.getRealServiceUrls()) {
              if (urlA.equals(urlB)) {
                conflictInfo.addConflict(serviceA, serviceB, MATCH_REAL_URL);
              }
            }
          }

          // SAME MOCK URL
View Full Code Here

            }
          }

          // SAME MOCK URL
          if (serviceA.getUrl() != null && serviceA.getUrl().equals(serviceB.getUrl())) {
            conflictInfo.addConflict(serviceA, serviceB, MATCH_MOCK_URL);
          }

        }
      }
View Full Code Here

      // Check for conflicts with
      for (Scenario scenarioA : serviceA.getScenarios()) {
        for (Scenario scenarioB : serviceA.getScenarios()) {

          if (scenarioA.hasSameNameAndResponse(scenarioB) && !scenarioA.getId().equals(scenarioB.getId())) {
            conflictInfo.addConflict(serviceA, serviceA, MATCH_SCENARIO);
          }
        }
      }

    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.