NEMOparserTokenManager implements NEMOparserConstants { static private int jjMoveStringLiteralDfa10_0(long old0, long active0) { if (((active0 &= old0)) == 0L) return jjStartNfa_0(8, old0); try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_0(9, active0); return 10; } switch(curChar) { case 110: if ((active0 & 0x100000000000L) != 0L) return jjStopAtPos(10, 44); break; case 115: if ((active0 & 0x1000000000000L) != 0L) return jjStartNfaWithStates_0(10, 48, 205); break; default : break; } return jjStartNfa_0(9, 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 testjjMoveStringLiteralDfa10_0() throws Exception { Method method = class1.getDeclaredMethod("jjMoveStringLiteralDfa10_0", new Class[]{ long.class, long.class }); method.setAccessible(true); PowerMockito.mockStatic(SimpleCharStream.class); PowerMockito.when(SimpleCharStream.readChar()) .thenReturn((char) 0) .thenReturn((char) 110) .thenReturn((char) 115); Assert.assertTrue((Integer) method.invoke(class1, 1L, 1L) == 11); Assert.assertTrue(NEMOparserTokenManager.curChar == 0); Assert.assertTrue((Integer) method.invoke(class1, 0x100000000000L, 0x100000000000L) == 11); Assert.assertTrue(NEMOparserTokenManager.curChar == 110); Assert.assertTrue((Integer) method.invoke(class1, 1L, 1L) == 11); Assert.assertTrue(NEMOparserTokenManager.curChar == 115); }