NEMOparserTokenManager implements NEMOparserConstants { static private int jjMoveStringLiteralDfa2_0(long old0, long active0) { if (((active0 &= old0)) == 0L) return jjStartNfa_0(0, old0); try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_0(1, active0); return 2; } switch(curChar) { case 68: return jjMoveStringLiteralDfa3_0(active0, 0x8000000L); case 69: return jjMoveStringLiteralDfa3_0(active0, 0x2000000L); case 76: return jjMoveStringLiteralDfa3_0(active0, 0x10000000L); case 80: return jjMoveStringLiteralDfa3_0(active0, 0x4000000L); case 97: return jjMoveStringLiteralDfa3_0(active0, 0x100000000000L); case 100: if ((active0 & 0x400000000000L) != 0L) { jjmatchedKind = 46; jjmatchedPos = 2; } return jjMoveStringLiteralDfa3_0(active0, 0x8800420000000L); case 101: return jjMoveStringLiteralDfa3_0(active0, 0x4022000000000L); case 103: return jjMoveStringLiteralDfa3_0(active0, 0x200000000000L); case 105: return jjMoveStringLiteralDfa3_0(active0, 0x80000000000L); case 110: return jjMoveStringLiteralDfa3_0(active0, 0x41008280000000L); case 111: return jjMoveStringLiteralDfa3_0(active0, 0x2040900000000L); case 112: return jjMoveStringLiteralDfa3_0(active0, 0x40000000L); case 114: return jjMoveStringLiteralDfa3_0(active0, 0x10004000000000L); case 116: return jjMoveStringLiteralDfa3_0(active0, 0x20011000000000L); default : break; } return jjStartNfa_0(1, 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 testjjMoveStringLiteralDfa2_0() throws Exception{ Method method = class1.getDeclaredMethod("jjMoveStringLiteralDfa2_0",new Class[]{ long.class, long.class }); method.setAccessible(true); PowerMockito.mockStatic(SimpleCharStream.class); PowerMockito.when(SimpleCharStream.readChar()) .thenReturn((char) 0) .thenReturn((char) 68) .thenReturn((char) 69) .thenReturn((char) 76) .thenReturn((char) 80) .thenReturn((char) 97) .thenReturn((char) 100) .thenReturn((char) 101) .thenReturn((char) 103) .thenReturn((char) 105) .thenReturn((char) 110) .thenReturn((char) 111) .thenReturn((char) 112) .thenReturn((char) 114) .thenReturn((char) 116); Assert.assertTrue((Integer)method.invoke(class1,1L,1L) == 3); Assert.assertTrue(NEMOparserTokenManager.curChar == 0); Assert.assertTrue((Integer) method.invoke(class1, 1L, 1L) == 3); Assert.assertTrue(NEMOparserTokenManager.curChar == 68); Assert.assertTrue((Integer) method.invoke(class1, 1L, 1L) == 3); Assert.assertTrue(NEMOparserTokenManager.curChar == 69); Assert.assertTrue((Integer) method.invoke(class1, 1L, 1L) == 3); Assert.assertTrue(NEMOparserTokenManager.curChar == 76); Assert.assertTrue((Integer) method.invoke(class1, 1L, 1L) == 3); Assert.assertTrue(NEMOparserTokenManager.curChar == 80); Assert.assertTrue((Integer) method.invoke(class1, 1L, 1L) == 3); Assert.assertTrue(NEMOparserTokenManager.curChar == 97); Assert.assertTrue((Integer) method.invoke(class1, 1L, 1L) == 3); Assert.assertTrue(NEMOparserTokenManager.curChar == 100); Assert.assertTrue((Integer) method.invoke(class1, 1L, 1L) == 3); Assert.assertTrue(NEMOparserTokenManager.curChar == 101); Assert.assertTrue((Integer) method.invoke(class1, 1L, 1L) == 3); Assert.assertTrue(NEMOparserTokenManager.curChar == 103); Assert.assertTrue((Integer) method.invoke(class1, 1L, 1L) == 3); Assert.assertTrue(NEMOparserTokenManager.curChar == 105); Assert.assertTrue((Integer) method.invoke(class1, 1L, 1L) == 3); Assert.assertTrue(NEMOparserTokenManager.curChar == 110); Assert.assertTrue((Integer) method.invoke(class1, 1L, 1L) == 3); Assert.assertTrue(NEMOparserTokenManager.curChar == 111); Assert.assertTrue((Integer) method.invoke(class1, 1L, 1L) == 3); Assert.assertTrue(NEMOparserTokenManager.curChar == 112); Assert.assertTrue((Integer) method.invoke(class1, 1L, 1L) == 3); Assert.assertTrue(NEMOparserTokenManager.curChar == 114); Assert.assertTrue((Integer) method.invoke(class1, 1L, 1L) == 3); Assert.assertTrue(NEMOparserTokenManager.curChar == 116); }