Skip to content

Commit

Permalink
Use proper asserts in 2.11
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Silver committed Jan 6, 2017
1 parent 1c4b360 commit b22ec6b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ public abstract class Echo {
public static Object echo(Object input) {
return input;
}
}
}
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");
}
}
}
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");
}
}
}

0 comments on commit b22ec6b

Please sign in to comment.