Michiel Rop pushed to branch feature/wpm-refactoring at cms-community / hippo-repository
Commits: 6f93b9c6 by Michiel Rop at 2017-03-21T13:57:48+01:00 REPO-1634:Add test jar for module workflow See https://maven.apache.org/plugins/maven-jar-plugin/examples/create-test-jar.html Add test jar for module workflow, so that tests in other projects can use and extend them. - - - - - 67e24685 by Michiel Rop at 2017-03-21T13:58:42+01:00 REPO-1634:Change access for #actions, #info and #getRequestActions * Change access from protected to public for #getRequestActions * Add getter for #actions and #info In order to extend or wrap HintBuilder public access is needed. - - - - - 2 changed files: - workflow/pom.xml - workflow/src/test/java/org/onehippo/repository/documentworkflow/HintsBuilder.java Changes: ===================================== workflow/pom.xml ===================================== --- a/workflow/pom.xml +++ b/workflow/pom.xml @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!-- - Copyright 2007-2015 Hippo B.V. (http://www.onehippo.com) - + Copyright 2007-2017 Hippo B.V. (http://www.onehippo.com) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -123,6 +122,18 @@ <workingDirectory>${project.build.directory}</workingDirectory> </configuration> </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-jar-plugin</artifactId> + <version>3.0.2</version> + <executions> + <execution> + <goals> + <goal>test-jar</goal> + </goals> + </execution> + </executions> + </plugin> </plugins> </build> ===================================== workflow/src/test/java/org/onehippo/repository/documentworkflow/HintsBuilder.java ===================================== --- a/workflow/src/test/java/org/onehippo/repository/documentworkflow/HintsBuilder.java +++ b/workflow/src/test/java/org/onehippo/repository/documentworkflow/HintsBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2014 Hippo B.V. (http://www.onehippo.com) + * Copyright 2014-2017 Hippo B.V. (http://www.onehippo.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -54,6 +54,14 @@ public class HintsBuilder { private TreeMap<String, Serializable> info = new TreeMap<>(); private TreeMap<String, Boolean> actions = new TreeMap<>(); + public TreeMap<String, Serializable> getInfo() { + return info; + } + + public TreeMap<String, Boolean> getActions() { + return actions; + } + public static HintsBuilder build() { return new HintsBuilder(); } @@ -123,7 +131,7 @@ public class HintsBuilder { } @SuppressWarnings("unchecked") - protected TreeMap<String, Boolean> getRequestActions(String requestId) { + public TreeMap<String, Boolean> getRequestActions(String requestId) { TreeMap<String, TreeMap<String, Boolean>> requests = (TreeMap<String, TreeMap<String, Boolean>>)info.get(INFO_REQUESTS); if (requests == null) { requests = new TreeMap<>(); View it on GitLab: https://code.onehippo.org/cms-community/hippo-repository/compare/3b7fac750574758f5f7c056773fa96bbe24dfe7c...67e24685721768e85d925b1378bd9625d45202b3
_______________________________________________ Hippocms-svn mailing list Hippocms-svn@lists.onehippo.org https://lists.onehippo.org/mailman/listinfo/hippocms-svn