View Javadoc
1   package org.csveed.token;
2   
3   import static org.junit.jupiter.api.Assertions.assertEquals;
4   
5   import org.junit.jupiter.api.Test;
6   
7   public class TokenStateTest {
8   
9       @Test
10      public void nextState() {
11          assertEquals(TokenState.RESET, TokenState.PROCESSING.next());
12          assertEquals(TokenState.START, TokenState.RESET.next());
13          assertEquals(TokenState.PROCESSING, TokenState.START.next());
14      }
15  }