-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jeremy Silver
committed
Jan 6, 2017
1 parent
1c4b360
commit b22ec6b
Showing
3 changed files
with
7 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ public abstract class Echo { | |
public static Object echo(Object input) { | ||
return input; | ||
} | ||
} | ||
} |
5 changes: 3 additions & 2 deletions
5
2.11-Exercise-WorkWithUnitTests/src/test/java/com/udacity/gradle/test/EchoTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
package com.udacity.gradle.test; | ||
|
||
import com.udacity.gradle.Echo; | ||
import org.junit.Assert; | ||
import org.junit.Test; | ||
|
||
public class EchoTest { | ||
@Test | ||
public void test() { | ||
assert Echo.echo("hello").equals("hello"); | ||
Assert.assertEquals(Echo.echo("hello"), "hello"); | ||
} | ||
} | ||
} |
5 changes: 3 additions & 2 deletions
5
2.11-Exercise-WorkWithUnitTests/src/test/java/com/udacity/gradle/test/PersonTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
package com.udacity.gradle.test; | ||
|
||
import com.udacity.gradle.Person; | ||
import org.junit.Assert; | ||
import org.junit.Test; | ||
|
||
public class PersonTest { | ||
@Test | ||
public void test() { | ||
Person person = new Person("Jeremy"); | ||
assert person.getName().equals("Jeremy"); | ||
Assert.assertEquals(person.getName(), "Jeremy"); | ||
} | ||
} | ||
} |