Пример #1
0
 public void assertParse(String identifier, String groupId, String artifactId, String version) {
   final Identifier id = new Identifier(identifier);
   assertEquals(id.getGroupId(), groupId, "Wrong group ID parsed from \"" + identifier + "\"");
   assertEquals(
       id.getArtifactId(), artifactId, "Wrong artifact ID parsed from \"" + identifier + "\"");
   assertEquals(id.getVersion(), version, "Wrong version parsed from \"" + identifier + "\"");
 }
 public ProjectModule getModuleForIdentifier(Identifier identifier) {
   final List<ProjectModule> allModules = getFlatListOfAllModules(config.getModules());
   for (ProjectModule module : allModules) {
     if (identifier.getGroupId().equals(module.getGroupId())
         && identifier.getArtifactId().equals(module.getArtifactId())) {
       return module;
     }
   }
   return null;
 }