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

NCL4738 - Simplify code (ncl4839 incorrect reference) #161

Merged
merged 5 commits into from
Oct 16, 2019

Conversation

rnc
Copy link
Contributor

@rnc rnc commented Oct 15, 2019

No description provided.

@rnc rnc requested a review from geoand October 15, 2019 13:20
.gitignore Outdated Show resolved Hide resolved
}
});
originalResp.setNewProjectVersion(newProjectVersion);
/*
when(originalResp.getAlignedVersionOfGav(any(ProjectVersionRef.class))).thenAnswer((Answer<String>) invocation -> {
Copy link
Collaborator

Choose a reason for hiding this comment

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

This part is supposed to be removed completely I assume, correct?

throws IOException, ManipulationException {
final Response originalResp = new Response();

/*
// just return whatever was passed
when(originalResp.getAlignedVersionOfGav(any(ProjectVersionRef.class))).thenAnswer((Answer<String>) invocation -> {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same here

public void ensureProjectVersionIsUpdatedWhenOriginalResponseHasNoProjectVersion2()
throws IOException, ManipulationException {
final Response originalResp = new Response();
/*
// just return whatever was passed
when(originalResp.getAlignedVersionOfGav(any(ProjectVersionRef.class))).thenAnswer((Answer<String>) invocation -> {
Copy link
Collaborator

Choose a reason for hiding this comment

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

And here

@geoand
Copy link
Collaborator

geoand commented Oct 16, 2019

Looks great! I just added some minor comments

Copy link
Collaborator

@geoand geoand left a comment

Choose a reason for hiding this comment

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

👍

@rnc rnc merged commit 2607d35 into project-ncl:master Oct 16, 2019
@rnc rnc deleted the NCL4839 branch October 16, 2019 08:17
@rnc rnc changed the title NCL4839 - Simplify code NCL4738 - Simplify code (ncl4839 incorrect reference) Nov 6, 2019
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.

2 participants