Skip to content

Commit

Permalink
Added simple test to ensure all imports are there.
Browse files Browse the repository at this point in the history
  • Loading branch information
Glen K. Peterson committed Mar 12, 2014
1 parent d90065d commit 9a32b65
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/test/java/EasyTest.java
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
import org.organicdesign.fp.ephemeral.View;

import static org.junit.Assert.assertArrayEquals;

@RunWith(JUnit4.class)
public class EasyTest {
// This test should pass as-is to prove that everything is installed correctly
@Test public void helloWorld() {
assertArrayEquals(new String[] { "Hello World" },
View.ofArray("Hello World").toArray());
}
// Construct an array by passing individual arguments to View
@Test public void fromAndToArray() {
// assertArrayEquals(new String[] { "a", "b", "c" },
Expand Down

0 comments on commit 9a32b65

Please sign in to comment.