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

Unit tests for APIPublisherImpl #3869

Merged
merged 9 commits into from
Mar 27, 2017
Merged

Unit tests for APIPublisherImpl #3869

merged 9 commits into from
Mar 27, 2017

Conversation

tharikaGitHub
Copy link
Member

No description provided.

@@ -150,7 +151,7 @@ public static LifecycleState getMockLifecycleStateObject(String lifecycleId) {
LifecycleState lifecycleState = new LifecycleState();
lifecycleState.setLcName("API_LIFECYCLE");
lifecycleState.setLifecycleId(lifecycleId);
lifecycleState.setState("PUBLISH");
lifecycleState.setState("PUBLISHED");
Copy link
Contributor

Choose a reason for hiding this comment

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

Use APIStatus constants

@@ -150,7 +151,7 @@ public static LifecycleState getMockLifecycleStateObject(String lifecycleId) {
LifecycleState lifecycleState = new LifecycleState();
lifecycleState.setLcName("API_LIFECYCLE");
Copy link
Contributor

Choose a reason for hiding this comment

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

use APIMgtConstants.API_LIFECYCLE

@tharikaGitHub
Copy link
Member Author

Thanks for the review. Will do changes.

@chamilaadhi
Copy link
Contributor

There are some strings constants in SampleTestObjectCreator.java class (not coming from your PR) . Shall we move them to constants and use existing constants where we can

@tharikaGitHub
Copy link
Member Author

Yes, sure. I will move them.

Copy link
Contributor

@pubudu538 pubudu538 left a comment

Choose a reason for hiding this comment

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

Shall we avoid adding merge commits? If you rebase the code, then merge commits will not occur.

@@ -20,11 +20,13 @@

package org.wso2.carbon.apimgt.core;


import org.apache.commons.collections.map.HashedMap;
Copy link
Contributor

Choose a reason for hiding this comment

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

Shall we remove the new line?

Copy link
Member Author

Choose a reason for hiding this comment

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

Will remove it.

@tharikaGitHub
Copy link
Member Author

Thanks for the review. Will rebase the code.

@pubudu538 pubudu538 merged commit 08e0fd2 into wso2:C5 Mar 27, 2017
mushthaq33 pushed a commit to mushthaq33/carbon-apimgt that referenced this pull request Nov 23, 2018
mushthaq33 pushed a commit that referenced this pull request Nov 28, 2018
wso2-jenkins-bot added a commit that referenced this pull request May 29, 2020
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.

3 participants