Skip to content

Commit

Permalink
More idiomatic junit test
Browse files Browse the repository at this point in the history
  • Loading branch information
aslakhellesoy authored Sep 5, 2016
1 parent ff867c8 commit 06f7689
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test/java/shouty/CoordinateTest.java
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package shouty;

import junit.framework.TestCase;
import org.junit.Test;
import static org.junit.Assert.assertEquals;

public class CoordinateTest extends TestCase {
public class CoordinateTest {

@Test
public void testItCalculatesTheDistanceFromAnotherCoordinateAlongXAxis() {
public void itCalculatesTheDistanceFromAnotherCoordinateAlongXAxis() {
Coordinate a = new Coordinate(0, 0);
Coordinate b = new Coordinate(1000, 0);
assertEquals(1000, a.distanceFrom(b));
Expand Down

0 comments on commit 06f7689

Please sign in to comment.