1 package io.atlassian.fugue;
2
3 import org.junit.Test;
4
5 import static io.atlassian.fugue.Unit.Unit;
6 import static org.hamcrest.MatcherAssert.assertThat;
7 import static org.hamcrest.Matchers.is;
8 import static org.hamcrest.Matchers.not;
9 import static org.hamcrest.Matchers.nullValue;
10
11 public class UnitTest {
12 @Test public void unitValueIsNotNull() {
13 assertThat(Unit.VALUE, is(not(nullValue())));
14 }
15
16 @Test public void unitMethodIsSameAsValue() {
17 assertThat(Unit(), is(Unit.VALUE));
18 }
19 }