Skip to content

Commit

Permalink
Update to framework 7.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
amckenzie committed Nov 16, 2020
1 parent 317250b commit 9ba1b21
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import uk.gov.justice.services.core.featurecontrol.domain.Feature;

import java.util.List;
import java.util.stream.Collectors;

import javax.enterprise.context.ApplicationScoped;
import javax.enterprise.inject.Default;
Expand All @@ -21,7 +20,6 @@ public class HardCodedFeatureFetcher implements FeatureFetcher {

private static final Feature HARD_CODED_DISABLED_FEATURE = new Feature(
"recipes-have-allergens-specified",
"Version 2 of add recipe handler for testing feature toggling",
false
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ public void shouldAcceptAddRecipeVersion2CommandIfTheFeatureIsEnabled() throws E
final boolean enabled = true;
final Feature feature = new Feature(
"recipes-have-allergens-specified",
"Version 2 of add recipe handler for testing feature toggling",
enabled
);

Expand All @@ -88,7 +87,6 @@ public void shouldRejectAddRecipeVersion2CommandIfTheFeatureIsDisabled() throws
final boolean enabled = false;
final Feature feature = new Feature(
"recipes-have-allergens-specified",
"Version 2 of add recipe handler for testing feature toggling",
enabled
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import static uk.gov.justice.services.eventstore.management.commands.VerifyRebuildCommand.VERIFY_REBUILD;
import static uk.gov.justice.services.jmx.system.command.client.connection.JmxParametersBuilder.jmxParameters;
import static uk.gov.justice.services.management.ping.commands.PingCommand.PING;
import static uk.gov.justice.services.management.suspension.commands.RefreshFeatureControlCacheCommand.REFRESH_FEATURE_CACHE;
import static uk.gov.justice.services.management.suspension.commands.SuspendCommand.SUSPEND;
import static uk.gov.justice.services.management.suspension.commands.UnsuspendCommand.UNSUSPEND;
import static uk.gov.justice.services.test.utils.common.host.TestHostProvider.getHost;
Expand All @@ -26,6 +27,7 @@
import uk.gov.justice.services.jmx.system.command.client.SystemCommanderClient;
import uk.gov.justice.services.jmx.system.command.client.TestSystemCommanderClientFactory;
import uk.gov.justice.services.jmx.system.command.client.connection.JmxParameters;
import uk.gov.justice.services.management.suspension.commands.RefreshFeatureControlCacheCommand;

import java.util.List;
import java.util.Map;
Expand Down Expand Up @@ -54,7 +56,7 @@ public void shouldListAllSystemCommands() throws Exception {
.getRemote(CONTEXT_NAME)
.listCommands();

assertThat(systemCommandDetailsList.size(), is(13));
assertThat(systemCommandDetailsList.size(), is(14));

final Map<String, SystemCommandDetails> systemCommandDetailsMap = systemCommandDetailsList
.stream()
Expand All @@ -67,6 +69,7 @@ public void shouldListAllSystemCommands() throws Exception {
assertThat(systemCommandDetailsMap.get(INDEXER_CATCHUP), is(notNullValue()));
assertThat(systemCommandDetailsMap.get(PING), is(notNullValue()));
assertThat(systemCommandDetailsMap.get(REBUILD), is(notNullValue()));
assertThat(systemCommandDetailsMap.get(REFRESH_FEATURE_CACHE), is(notNullValue()));
assertThat(systemCommandDetailsMap.get(REMOVE_TRIGGER), is(notNullValue()));
assertThat(systemCommandDetailsMap.get(SUSPEND), is(notNullValue()));
assertThat(systemCommandDetailsMap.get(UNSUSPEND), is(notNullValue()));
Expand Down
2 changes: 0 additions & 2 deletions example-context/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,4 @@
<module>example-persistence</module>
<module>example-service</module>
</modules>


</project>
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
<properties>
<cpp.repo.name>cake-shop</cpp.repo.name>

<framework-libraries.version>7.2.0-M3</framework-libraries.version>
<framework.version>7.2.0-M4</framework.version>
<event-store.version>7.2.0-M4</event-store.version>
<framework-libraries.version>7.2.0</framework-libraries.version>
<framework.version>7.2.0</framework.version>
<event-store.version>7.2.0</event-store.version>
</properties>

<dependencyManagement>
Expand Down

0 comments on commit 9ba1b21

Please sign in to comment.