Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
junit-exercise
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shanelle Valencia
junit-exercise
Commits
c90b2bea
Commit
c90b2bea
authored
Apr 12, 2021
by
Shanelle Valencia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add more tests
parent
4deb3327
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
4 deletions
+1
-4
StringsTest.java
src/test/java/com/myapp/StringsTest.java
+1
-4
StringsTest.class
target/test-classes/com/myapp/StringsTest.class
+0
-0
No files found.
src/test/java/com/myapp/StringsTest.java
View file @
c90b2bea
...
...
@@ -11,7 +11,7 @@ import java.util.List;
public
class
StringsTest
{
String
string
;
private
String
sentence
=
"This is a sentence with even and odd words"
;
@Before
...
...
@@ -48,7 +48,6 @@ public class StringsTest {
@Test
public
void
testEvenWordsInSent
()
{
String
sentence
=
"This is a sentence with even and odd words"
;
List
<
String
>
expected
=
new
Strings
().
evenWordsInSent
(
sentence
);
List
<
String
>
actual
=
Arrays
.
asList
(
sentence
.
split
(
" "
));
// List<String> actual = Arrays.asList("This", "is", "sentence", "with", "even");
...
...
@@ -61,7 +60,6 @@ public class StringsTest {
@Test
public
void
assertNotEquals
()
{
String
sentence
=
"This is a sentence with even and odd words"
;
List
<
String
>
expected
=
new
Strings
().
evenWordsInSent
(
sentence
);
List
<
String
>
actual
=
Arrays
.
asList
(
sentence
.
split
(
" "
));
...
...
@@ -71,7 +69,6 @@ public class StringsTest {
@Test
public
void
assertNotSame
()
{
String
sentence
=
"This is a sentence with even and odd words"
;
List
<
String
>
expected
=
new
Strings
().
evenWordsInSent
(
sentence
);
List
<
String
>
actual
=
Arrays
.
asList
(
sentence
.
split
(
" "
));
...
...
target/test-classes/com/myapp/StringsTest.class
View file @
c90b2bea
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment