@@ -0,0 +1,1400 @@
+/*%0A * Copyright (c) 2012 Mateusz Parzonka, Eric Bodden%0A * All rights reserved. This program and the accompanying materials%0A * are made available under the terms of the Eclipse Public License v1.0%0A * which accompanies this distribution, and is available at%0A * http://www.eclipse.org/legal/epl-v10.html%0A *%0A * Contributors:%0A * Mateusz Parzonka - initial API and implementation%0A */%0Apackage prm4j.indexing.staticdata;%0A%0Aimport static org.junit.Assert.assertArrayEquals;%0Aimport static org.junit.Assert.assertEquals;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Apublic class StaticDataConverter_HasNext_Test extends AbstractStaticDataConverterTest %7B%0A%0A    FSM_HasNext fsm;%0A%0A    @Before%0A    public void init() %7B%0A%09fsm = new FSM_HasNext();%0A%09init(fsm);%0A    %7D%0A%0A    @Test%0A    public void getChainData_nothingGetsChained() throws Exception %7B%0A%09assertChainData(asSet(fsm.i), EMPTY_CHAINDATA_SET);%0A    %7D%0A%0A    @Test%0A    public void getJoinData_nothingGetsJoined() throws Exception %7B%0A%09assertEquals(2, sdc.getJoinData().length);%0A%09assertJoinData(fsm.next, EMPTY_JOINDATA_LIST);%0A%09assertJoinData(fsm.hasNext, EMPTY_JOINDATA_LIST);%0A    %7D%0A%0A    @Test%0A    public void getMaxData_noMaxima() throws Exception %7B%0A%09assertEquals(2, sdc.getMaxData().length);%0A%09assertArrayEquals(EMPTY_MAXDATA_ARRAY, sdc.getMaxData()%5Bfsm.next.getIndex()%5D);%0A%09assertArrayEquals(EMPTY_MAXDATA_ARRAY, sdc.getMaxData()%5Bfsm.hasNext.getIndex()%5D);%0A    %7D%0A%0A%7D%0A

Add test for StatidDataConverter