Skip to content

Adding isBlank method - #89

Merged
shekhargulati merged 4 commits into
shekhargulati:masterfrom
deeseja:master
May 20, 2017
Merged

Adding isBlank method#89
shekhargulati merged 4 commits into
shekhargulati:masterfrom
deeseja:master

Conversation

@deeseja

@deeseja deeseja commented May 19, 2017

Copy link
Copy Markdown
Contributor

Added isBlank method along with unit tests and readme updates. Also added specific Eclipse files to ignore from local in .gitignore. Removed the following imports from the tests:
-import static strman.Strman.endsWith;
-import static strman.Strman.format;

These are not needed since the following redundant import is also there:
import static strman.Strman.*;

Comment thread src/main/java/strman/Strman.java Outdated
import static java.util.stream.Collectors.counting;
import static java.util.stream.Collectors.groupingBy;
import static java.util.stream.Collectors.joining;
import static org.junit.Assert.assertFalse;

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Please remove JUnit Assert* methods.Build is failing because of it.

Comment thread src/main/java/strman/Strman.java Outdated
import static java.util.stream.Collectors.groupingBy;
import static java.util.stream.Collectors.joining;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Remove this as well.

Comment thread src/main/java/strman/Strman.java Outdated
import static java.util.stream.Collectors.joining;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static strman.Strman.isBlank;

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Why are you importing isBlank is Strman.java

Comment thread src/test/java/strman/StrmanTest.java Outdated

@Test
public void testIsBlank() {
assertTrue(isBlank(""));

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Please make them seperate test case. Also, use convention used for naming test methods.

@codecov-io

Copy link
Copy Markdown

Codecov Report

Merging #89 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master      #89      +/-   ##
============================================
+ Coverage     99.03%   99.03%   +<.01%     
- Complexity      144      147       +3     
============================================
  Files             3        3              
  Lines          4160     4161       +1     
  Branches         50       50              
============================================
+ Hits           4120     4121       +1     
  Misses           23       23              
  Partials         17       17
Impacted Files Coverage Δ Complexity Δ
src/main/java/strman/Strman.java 88.05% <100%> (+0.03%) 145 <3> (+3) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cf1d373...04b9f8a. Read the comment docs.

@shekhargulati
shekhargulati merged commit d04e679 into shekhargulati:master May 20, 2017
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