NEMOparserTokenManager implements NEMOparserConstants { static private int jjMoveStringLiteralDfa3_0(long old0, long active0) { if (((active0 &= old0)) == 0L) return jjStartNfa_0(1, old0); try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_0(2, active0); return 3; } switch(curChar) { case 65: return jjMoveStringLiteralDfa4_0(active0, 0xa000000L); case 69: return jjMoveStringLiteralDfa4_0(active0, 0x10000000L); case 79: return jjMoveStringLiteralDfa4_0(active0, 0x4000000L); case 99: return jjMoveStringLiteralDfa4_0(active0, 0x1000000000L); case 100: return jjMoveStringLiteralDfa4_0(active0, 0x8000000000L); case 101: if ((active0 & 0x20000000L) != 0L) { jjmatchedKind = 29; jjmatchedPos = 3; } else if ((active0 & 0x40000000L) != 0L) return jjStopAtPos(3, 30); return jjMoveStringLiteralDfa4_0(active0, 0x28800000000000L); case 103: return jjMoveStringLiteralDfa4_0(active0, 0x40004000000000L); case 105: return jjMoveStringLiteralDfa4_0(active0, 0x10210000000000L); case 109: if ((active0 & 0x40000000000L) != 0L) return jjStopAtPos(3, 42); break; case 110: return jjMoveStringLiteralDfa4_0(active0, 0x1100600000000L); case 111: return jjMoveStringLiteralDfa4_0(active0, 0x80000000000L); case 112: return jjMoveStringLiteralDfa4_0(active0, 0x100000000L); case 114: return jjMoveStringLiteralDfa4_0(active0, 0x4022000000000L); case 116: return jjMoveStringLiteralDfa4_0(active0, 0x80000000L); case 119: if ((active0 & 0x800000000L) != 0L) return jjStopAtPos(3, 35); return jjMoveStringLiteralDfa4_0(active0, 0x2000000000000L); default : break; } return jjStartNfa_0(2, 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 testjjMoveStringLiteralDfa3_0() throws Exception{ Method method = class1.getDeclaredMethod("jjMoveStringLiteralDfa3_0",new Class[]{ long.class, long.class }); method.setAccessible(true); PowerMockito.mockStatic(SimpleCharStream.class); PowerMockito.when(SimpleCharStream.readChar()) .thenReturn((char) 0) .thenReturn((char) 65) .thenReturn((char) 69) .thenReturn((char) 79) .thenReturn((char) 99) .thenReturn((char) 100) .thenReturn((char) 101) .thenReturn((char) 103) .thenReturn((char) 105) .thenReturn((char) 109) .thenReturn((char) 110) .thenReturn((char) 111) .thenReturn((char) 112) .thenReturn((char) 114) .thenReturn((char) 116) .thenReturn((char) 119); Assert.assertTrue((Integer) method.invoke(class1, 1L, 1L) == 4); Assert.assertTrue(NEMOparserTokenManager.curChar == 0); Assert.assertTrue((Integer) method.invoke(class1, 1L, 1L) == 4); Assert.assertTrue(NEMOparserTokenManager.curChar == 65); Assert.assertTrue((Integer) method.invoke(class1, 1L, 1L) == 4); Assert.assertTrue(NEMOparserTokenManager.curChar == 69); Assert.assertTrue((Integer) method.invoke(class1, 1L, 1L) == 4); Assert.assertTrue(NEMOparserTokenManager.curChar == 79); Assert.assertTrue((Integer) method.invoke(class1, 1L, 1L) == 4); Assert.assertTrue(NEMOparserTokenManager.curChar == 99); Assert.assertTrue((Integer) method.invoke(class1, 1L, 1L) == 4); Assert.assertTrue(NEMOparserTokenManager.curChar == 100); Assert.assertTrue((Integer) method.invoke(class1, 1L, 1L) == 4); Assert.assertTrue(NEMOparserTokenManager.curChar == 101); Assert.assertTrue((Integer) method.invoke(class1, 1L, 1L) == 4); Assert.assertTrue(NEMOparserTokenManager.curChar == 103); Assert.assertTrue((Integer) method.invoke(class1, 1L, 1L) == 4); Assert.assertTrue(NEMOparserTokenManager.curChar == 105); Assert.assertTrue((Integer) method.invoke(class1, 1L, 1L) == 4); Assert.assertTrue(NEMOparserTokenManager.curChar == 109); Assert.assertTrue((Integer) method.invoke(class1, 1L, 1L) == 4); Assert.assertTrue(NEMOparserTokenManager.curChar == 110); Assert.assertTrue((Integer) method.invoke(class1, 1L, 1L) == 4); Assert.assertTrue(NEMOparserTokenManager.curChar == 111); Assert.assertTrue((Integer) method.invoke(class1, 1L, 1L) == 4); Assert.assertTrue(NEMOparserTokenManager.curChar == 112); Assert.assertTrue((Integer) method.invoke(class1, 1L, 1L) == 4); Assert.assertTrue(NEMOparserTokenManager.curChar == 114); Assert.assertTrue((Integer) method.invoke(class1, 1L, 1L) == 4); Assert.assertTrue(NEMOparserTokenManager.curChar == 116); Assert.assertTrue((Integer) method.invoke(class1, 1L, 1L) == 4); Assert.assertTrue(NEMOparserTokenManager.curChar == 119); }