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 class GhMarkdownTest.java #39

Closed
wants to merge 2 commits into from
Closed

add class GhMarkdownTest.java #39

wants to merge 2 commits into from

Conversation

mits0908
Copy link

No description provided.


/**
* Verify return string.
* @todo #32:15min add verification that render() returns correct string
Copy link
Member

Choose a reason for hiding this comment

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

I was wrong about the format. It should be [0-9]+(\.[0-9])?. So, in your case, it's @todo #32:0.2hr

@yegor256
Copy link
Member

@mits0908 I've made a comment about the todo tag. Should work now.

@yegor256
Copy link
Member

@mits0908 let me know when the rest of the code is ready for review

import org.mockito.Mockito;

/**
* Created with IntelliJ IDEA.
Copy link
Member

Choose a reason for hiding this comment

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

Looks like a typo

Copy link
Author

Choose a reason for hiding this comment

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

yes, removed this line

@yegor256
Copy link
Member

@mits0908 I've made my comments above. Let me know if you need help.

@mits0908
Copy link
Author

BTW. class GhMarkdownTest.java is testing interface Markdown, we cannot test GhMarkdown class because it is final.

*/
@Test
public void returnStringWhenPassNullToRender() throws Exception {
final String notNull = "JSON can't be NULL";
Copy link
Member

Choose a reason for hiding this comment

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

This test case is not testing anything. You're using Mockito in a wrong way. I'd recommend you to read about TDD, JUnit and Mockito first.

@yegor256 yegor256 closed this Dec 23, 2013
ghost pushed a commit that referenced this pull request Jan 30, 2014
merge from master to my branch
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

2 participants