From ce6c15654a3b43263b97b2526aa80fc4f9106158 Mon Sep 17 00:00:00 2001 From: zipwiz Date: Wed, 6 Jan 2016 12:42:53 +0100 Subject: [PATCH 1/2] Add all CommunityService constructors for mocking and Spring integration --- .../communities/WidgetCommunityService.java | 48 ++++++++++++++++++- 1 file changed, 47 insertions(+), 1 deletion(-) diff --git a/sdk/com.ibm.sbt.core/src/main/java/com/ibm/sbt/services/client/connections/communities/WidgetCommunityService.java b/sdk/com.ibm.sbt.core/src/main/java/com/ibm/sbt/services/client/connections/communities/WidgetCommunityService.java index f96d677632..590a1d5085 100644 --- a/sdk/com.ibm.sbt.core/src/main/java/com/ibm/sbt/services/client/connections/communities/WidgetCommunityService.java +++ b/sdk/com.ibm.sbt.core/src/main/java/com/ibm/sbt/services/client/connections/communities/WidgetCommunityService.java @@ -22,6 +22,7 @@ import com.ibm.sbt.services.client.base.util.EntityUtil; import com.ibm.sbt.services.client.connections.communities.model.CommunityXPath; import com.ibm.sbt.services.client.connections.communities.util.Messages; +import com.ibm.sbt.services.endpoints.Endpoint; /** @@ -45,6 +46,51 @@ public class WidgetCommunityService extends CommunityService { public static final String WIDGET_DEF_ID = "widgetDefId"; + /** + * Constructor Creates WidgetCommunityService Object with default endpoint and default CacheSize + */ + public WidgetCommunityService() { + super(DEFAULT_ENDPOINT_NAME, DEFAULT_CACHE_SIZE); + } + + /** + * Constructor - Creates WidgetCommunityService Object with a specified endpoint and default CacheSize + * + * @param endpoint + */ + public WidgetCommunityService(String endpoint) { + super(endpoint, DEFAULT_CACHE_SIZE); + } + + /** + * Constructor - Creates WidgetCommunityService Object with specified endpoint and CacheSize + * + * @param endpoint + * @param cacheSize + */ + public WidgetCommunityService(String endpoint, int cacheSize) { + super(endpoint, cacheSize); + } + + /** + * Constructor - Creates WidgetCommunityService Object with a specified endpoint and default CacheSize + * + * @param endpoint + */ + public WidgetCommunityService(Endpoint endpoint) { + super(endpoint, DEFAULT_CACHE_SIZE); + } + + /** + * Constructor - Creates WidgetCommunityService Object with specified endpoint and CacheSize + * + * @param endpoint + * @param cacheSize + */ + public WidgetCommunityService(Endpoint endpoint, int cacheSize) { + super(endpoint, cacheSize); + } + /** * Wrapper method to get a "Widget enabled" Community *

@@ -194,7 +240,7 @@ public Widget createCommunityWidget(Community community, WidgetDefId widgetDefId EntityList widgetList = getCommunityWidgets(community.getCommunityUuid(), widgetDefId); if (null != widgetList && widgetList.size() > 0) { communityWidget = widgetList.get(0); - // TODO Check if an EntityList entry is complete (or if fields are missing). CommunityList does NOT contain all entry data! + // TODO Check if an EntityList entry is complete (or if fields are missing). EntityList does NOT contain all entry data! } return communityWidget; From 1b768ca54bbd016ec337205f76c3a9966c4742f3 Mon Sep 17 00:00:00 2001 From: zipwiz Date: Sun, 10 Jan 2016 10:10:05 +0100 Subject: [PATCH 2/2] Fix #1759 = https://github.com/travis-ci/travis-ci/issues/4629 for SBT --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index ceb5594262..3fbd5db947 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,6 @@ language: java +before_install: +- sed -i.bak -e 's|https://nexus.codehaus.org/snapshots/|https://oss.sonatype.org/content/repositories/codehaus-snapshots/|g' ~/.m2/settings.xml install: echo 'Skipping mvn install' before_script: - ./test-whitespaces.sh