View Javadoc

1   package io.atlassian.fugue;
2   
3   import static io.atlassian.fugue.Unit.Unit;
4   import static org.hamcrest.MatcherAssert.assertThat;
5   import static org.hamcrest.Matchers.is;
6   import static org.hamcrest.Matchers.not;
7   import static org.hamcrest.Matchers.nullValue;
8   
9   import org.junit.Test;
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  }