1 /* 2 * CSVeed (https://github.com/42BV/CSVeed) 3 * 4 * Copyright 2013-2023 CSVeed. 5 * 6 * All rights reserved. This program and the accompanying materials 7 * are made available under the terms of The Apache Software License, 8 * Version 2.0 which accompanies this distribution, and is available at 9 * https://www.apache.org/licenses/LICENSE-2.0.txt 10 */ 11 package org.csveed.token; 12 13 import static org.junit.jupiter.api.Assertions.assertEquals; 14 15 import org.junit.jupiter.api.Test; 16 17 /** 18 * The Class TokenStateTest. 19 */ 20 class TokenStateTest { 21 22 /** 23 * Next state. 24 */ 25 @Test 26 void nextState() { 27 assertEquals(TokenState.RESET, TokenState.PROCESSING.next()); 28 assertEquals(TokenState.START, TokenState.RESET.next()); 29 assertEquals(TokenState.PROCESSING, TokenState.START.next()); 30 } 31 }