NEMOparserTokenManager implements NEMOparserConstants { static private int jjMoveStringLiteralDfa6_0(long old0, long active0) { if (((active0 &= old0)) == 0L) return jjStartNfa_0(4, old0); try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_0(5, active0); return 6; } switch(curChar) { case 99: return jjMoveStringLiteralDfa7_0(active0, 0x100000000000L); case 100: return jjMoveStringLiteralDfa7_0(active0, 0x8000000000000L); case 101: return jjMoveStringLiteralDfa7_0(active0, 0x400000000L); case 105: return jjMoveStringLiteralDfa7_0(active0, 0x400a000000000L); case 110: if ((active0 & 0x80000000L) != 0L) return jjStopAtPos(6, 31); break; case 114: if ((active0 & 0x20000000000000L) != 0L) return jjStartNfaWithStates_0(6, 53, 205); break; case 116: return jjMoveStringLiteralDfa7_0(active0, 0x1080300000000L); default : break; } return jjStartNfa_0(5, active0); } NEMOparserTokenManager(SimpleCharStream stream);  NEMOparserTokenManager(SimpleCharStream stream, int lexState); static void setDebugStream(java.io.PrintStream ds); static void ReInit(SimpleCharStream stream); static void ReInit(SimpleCharStream stream, int lexState); static void SwitchTo(int lexState); static Token getNextToken(); static java.io.PrintStream debugStream; static final String[] jjstrLiteralImages; static final String[] lexStateNames; }
@Test public void testjjMoveStringLiteralDfa6_0() throws Exception{ Method method = class1.getDeclaredMethod("jjMoveStringLiteralDfa6_0",new Class[]{ long.class, long.class }); method.setAccessible(true); PowerMockito.mockStatic(SimpleCharStream.class); PowerMockito.when(SimpleCharStream.readChar()) .thenReturn((char) 0) .thenReturn((char) 99) .thenReturn((char) 100) .thenReturn((char) 101) .thenReturn((char) 105) .thenReturn((char) 110) .thenReturn((char) 114) .thenReturn((char) 116); Assert.assertTrue((Integer) method.invoke(class1, 1L, 1L) == 7); Assert.assertTrue(NEMOparserTokenManager.curChar == 0); Assert.assertTrue((Integer) method.invoke(class1, 1L, 1L) == 7); Assert.assertTrue(NEMOparserTokenManager.curChar == 99); Assert.assertTrue((Integer) method.invoke(class1, 1L, 1L) == 7); Assert.assertTrue(NEMOparserTokenManager.curChar == 100); Assert.assertTrue((Integer) method.invoke(class1, 1L, 1L) == 7); Assert.assertTrue(NEMOparserTokenManager.curChar == 101); Assert.assertTrue((Integer) method.invoke(class1, 1L, 1L) == 7); Assert.assertTrue(NEMOparserTokenManager.curChar == 105); Assert.assertTrue((Integer) method.invoke(class1, 0x80000000L, 0x80000000L) == 7); Assert.assertTrue(NEMOparserTokenManager.curChar == 110); Assert.assertTrue((Integer) method.invoke(class1, 1L, 1L) == 7); Assert.assertTrue(NEMOparserTokenManager.curChar == 114); Assert.assertTrue((Integer) method.invoke(class1, 1L, 1L) == 7); Assert.assertTrue(NEMOparserTokenManager.curChar == 116); }