Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Shuttering Implementation #22

Merged
merged 1 commit into from
Apr 9, 2019
Merged

Conversation

BenNzewi
Copy link
Collaborator

@BenNzewi BenNzewi commented Apr 8, 2019

No description provided.

@wlzhn wlzhn force-pushed the add-shuttering-it-implementation branch 3 times, most recently from d6f4025 to eae2837 Compare April 8, 2019 15:03
@coveralls
Copy link

coveralls commented Apr 8, 2019

Pull Request Test Coverage Report for Build 176

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 57.81%

Totals Coverage Status
Change from base Build 135: 0.0%
Covered Lines: 359
Relevant Lines: 621

💛 - Coveralls

@@ -16,6 +16,7 @@
import static uk.gov.justice.services.example.cakeshop.it.params.CakeShopUris.RECIPES_RESOURCE_QUERY_URI;
import static uk.gov.justice.services.example.cakeshop.it.params.CakeShopUris.RECIPES_RESOURCE_URI;

import org.junit.*;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the .* import needs changing, maybe the intellij code style is not set

@@ -9,17 +9,13 @@
import static org.hamcrest.core.IsNull.nullValue;
import static uk.gov.justice.services.example.cakeshop.it.params.CakeShopUris.ORDERS_RESOURCE_URI;

import org.junit.*;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the .* import needs changing

@@ -10,6 +10,7 @@
import static uk.gov.justice.services.example.cakeshop.it.params.CakeShopMediaTypes.CONTEXT_NAME;
import static uk.gov.justice.services.example.cakeshop.it.params.CakeShopUris.RECIPES_RESOURCE_URI;

import org.junit.*;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the .* import needs changing

@@ -7,6 +7,7 @@
import static org.junit.Assert.assertNull;
import static uk.gov.justice.services.example.cakeshop.it.params.CakeShopUris.RECIPES_RESOURCE_URI;

import org.junit.*;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the .* import needs changing

@@ -17,6 +17,7 @@
import static uk.gov.justice.services.example.cakeshop.it.params.CakeShopUris.ORDERS_RESOURCE_URI;
import static uk.gov.justice.services.test.utils.core.matchers.HttpStatusCodeMatcher.isStatus;

import org.junit.*;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the .* import needs changing

@@ -6,6 +6,7 @@
import static org.hamcrest.core.IsCollectionContaining.hasItem;
import static uk.gov.justice.services.test.utils.core.reflection.ReflectionUtil.setField;

import org.junit.*;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the .* import needs changing

.assertThat("$.recipes[?(@.id=='" + recipeId + "')].name", hasItem(recipeName))
.assertThat("$.recipes[?(@.id=='" + recipeId2 + "')].name", hasItem(recipeName2));
}
else{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"else" looks better if on the same line as the } above it

if(isShutteringRequired){
mBeanHelper.getMbeanProxy(connection, objectName, ShutteringMBean.class).doShutteringRequested();
}
else{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"else" looks better if on the same line as the } above it

@wlzhn wlzhn force-pushed the add-shuttering-it-implementation branch 5 times, most recently from c43d616 to 39e01c9 Compare April 9, 2019 10:12
@wlzhn wlzhn force-pushed the add-shuttering-it-implementation branch from 39e01c9 to 2cbe958 Compare April 9, 2019 10:17
@mapingo mapingo merged commit 2c06010 into master Apr 9, 2019
@mapingo mapingo deleted the add-shuttering-it-implementation branch April 9, 2019 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants