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

LifecycleTest.java:81-83: Implement MkScenario and MkStep. Rewrite... #359

Closed
davvd opened this issue Oct 14, 2014 · 14 comments
Closed

LifecycleTest.java:81-83: Implement MkScenario and MkStep. Rewrite... #359

davvd opened this issue Oct 14, 2014 · 14 comments
Labels

Comments

@davvd
Copy link
Collaborator

davvd commented Oct 14, 2014

Puzzle 351-ebb2c3b5 in src/test/java/com/thindeck/life/LifecycleTest.java:81-83 has to be resolved: Implement MkScenario and MkStep. Rewrite the test after that using mocks from com.thindeck.api.mock package instead of mockito.

@davvd
Copy link
Collaborator Author

davvd commented Oct 15, 2014

@soliveri this ticket is yours now, please proceed, and keep in mind this. Any technical questions you should ask right here

@davvd
Copy link
Collaborator Author

davvd commented Oct 15, 2014

@soliveri The cost of this task is 30 mins (this is exactly how much will be paid, not less not more), when the task is done

@davvd
Copy link
Collaborator Author

davvd commented Nov 4, 2014

@soliveri it takes too long. Usually, we expect any task to be finished in less than a week. I'll assign someone else. Please stop working with it right now. See our no obligations principle

@davvd davvd removed the @soliveri label Nov 4, 2014
@davvd
Copy link
Collaborator Author

davvd commented Nov 5, 2014

@php-coder the task is for you now, follow these guidelines. Don't hesitate to ask any technical questions right here

Budget here is 30 mins (keep this principle in mind)

@php-coder
Copy link
Contributor

When I run static analysis I've got the following messages:

$ mvn -Pqulice qulice:check 2>/dev/null | egrep 'MkStep|MkScenario|LifecycleTest'
[ERROR] /src/main/java/com/thindeck/api/mock/MkScenario.java[2]: Line does not match expected header line of ' * BSD License'. (HeaderCheck)
[ERROR] /src/main/java/com/thindeck/api/mock/MkStep.java[2]: Line does not match expected header line of ' * BSD License'. (HeaderCheck)
[ERROR] /src/test/java/com/thindeck/life/LifecycleTest.java[2]: Line does not match expected header line of ' * BSD License'. (HeaderCheck)
[ERROR] /src/test/java/com/thindeck/life/LifecycleTest.java[38]: Wrong order for 'org.hamcrest.Matchers' import. (ImportOrderCheck)

Question No1: What's wrong with header? I see that error for a lot of files. How I can fix it? Where I can read more about this check?
Question No2: Where I can find rules for ordering imports? I don't understand the logic behind this check..
Question No3: Why we need to add @Version I d javadoc? For what it needed? Who and when will substitute that I d ?

@php-coder
Copy link
Contributor

I've created pull request #427 with my changes. Also see my comment in request's description.

@yegor256
Copy link
Owner

yegor256 commented Nov 5, 2014

  1. did you fix the header already? I think you did, since the pull request is there
  2. imports should be ordered alphabetically. no static imports. no asterisks.
  3. it's an inherited rudimentary thing, from SVN. just put it there. in Git it's useless, but our rules are the same for SVN and Git

@php-coder
Copy link
Contributor

did you fix the header already? I think you did, since the pull request is there

No, I didn't. May it somehow related to OS (I suspect that it's issue with newlines) where tests were run. I run them under Mac OS X.

imports should be ordered alphabetically. no static imports. no asterisks.

Ok, thanks. I've fixed it now and pushed to my branch.

BTW, my pull request fails but I believe that it's not by fault because I didn't touch NginxTest.canUpdateNginxHttpConfig..

@php-coder
Copy link
Contributor

One more question: "Puzzle 351-ebb2c3b5" What is it? 351 it's a ticket number? ebb2c3b5 it's a sha1 of related commit? Am I right?

@yegor256
Copy link
Owner

yegor256 commented Nov 5, 2014

It's an internal number we use to identify every puzzle in a unique way

@yegor256
Copy link
Owner

yegor256 commented Nov 5, 2014

Looks like your pull request is almost good to go, just a few minor corrections. I've made a comment right there, in #427

@php-coder
Copy link
Contributor

@davvd Please, close the task.

@davvd davvd closed this as completed Nov 12, 2014
@davvd
Copy link
Collaborator Author

davvd commented Nov 12, 2014

We're done here, thanks all

@davvd
Copy link
Collaborator Author

davvd commented Nov 12, 2014

@php-coder thank you, added 30 mins to your acc, payment num is AP-9Y091764KS910605M

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants