コード例 #1
0
 @Test
 public void verifyFanStatistics() {
   StateStatistics stats = result.getStatistics().getStateStats();
   assertThat("Least fan in", stats.getLeastFanIn().getFanIn(), is(1));
   assertThat("Most fan in", stats.getMostFanIn().getFanIn(), is(2));
   assertThat("Least fan out", stats.getLeastFanOut().getFanIn(), is(1));
   assertThat("Most fan out", stats.getMostFanOut().getFanOut(), is(2));
 }
コード例 #2
0
 @Test
 public void allEdgesAreInResult() {
   assertThat(result.getEdges(), hasSize(NUMBER_OF_EDGES));
 }
コード例 #3
0
 @Test
 public void allStatesAreInResult() {
   assertThat(result.getStates().keySet(), hasSize(NUMBER_OF_STATES));
 }