@Test public void testjjMoveStringLiteralDfa8_0() throws Exception{ Method method = class1.getDeclaredMethod("jjMoveStringLiteralDfa8_0",new Class[]{ long.class, long.class }); method.setAccessible(true); PowerMockito.mockStatic(SimpleCharStream.class); PowerMockito.when(SimpleCharStream.readChar()) .thenReturn((char) 0) .thenReturn((char) 105) .thenReturn((char) 108) .thenReturn((char) 110) .thenReturn((char) 110) .thenReturn((char) 110) .thenReturn((char) 111); Assert.assertTrue((Integer) method.invoke(class1, 1L, 1L) == 9); Assert.assertTrue(NEMOparserTokenManager.curChar == 0); Assert.assertTrue((Integer) method.invoke(class1, 1L, 1L) == 9); Assert.assertTrue(NEMOparserTokenManager.curChar == 105); Assert.assertTrue((Integer) method.invoke(class1, 0x8000000000000L, 0x8000000000000L) == 9); Assert.assertTrue(NEMOparserTokenManager.curChar == 108); Assert.assertTrue((Integer) method.invoke(class1, 0x2000000000L, 0x2000000000L) == 9); Assert.assertTrue(NEMOparserTokenManager.curChar == 110); Assert.assertTrue((Integer) method.invoke(class1, 0x8000000000L, 0x8000000000L) == 9); Assert.assertTrue(NEMOparserTokenManager.curChar == 110); Assert.assertTrue((Integer) method.invoke(class1, 1L, 1L) == 9); Assert.assertTrue(NEMOparserTokenManager.curChar == 110); Assert.assertTrue((Integer) method.invoke(class1, 1L, 1L) == 9); Assert.assertTrue(NEMOparserTokenManager.curChar == 111); }
static private int jjMoveStringLiteralDfa8_0(long old0, long active0) { if (((active0 &= old0)) == 0L) return jjStartNfa_0(6, old0); try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_0(7, active0); return 8; } switch(curChar) { case 105: return jjMoveStringLiteralDfa9_0(active0, 0x100000000000L); case 108: if ((active0 & 0x8000000000000L) != 0L) return jjStopAtPos(8, 51); break; case 110: if ((active0 & 0x2000000000L) != 0L) return jjStopAtPos(8, 37); else if ((active0 & 0x8000000000L) != 0L) return jjStopAtPos(8, 39); return jjMoveStringLiteralDfa9_0(active0, 0x4000000000000L); case 111: return jjMoveStringLiteralDfa9_0(active0, 0x1000200000000L); default : break; } return jjStartNfa_0(7, active0); }
NEMOparserTokenManager implements NEMOparserConstants { static private int jjMoveStringLiteralDfa8_0(long old0, long active0) { if (((active0 &= old0)) == 0L) return jjStartNfa_0(6, old0); try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_0(7, active0); return 8; } switch(curChar) { case 105: return jjMoveStringLiteralDfa9_0(active0, 0x100000000000L); case 108: if ((active0 & 0x8000000000000L) != 0L) return jjStopAtPos(8, 51); break; case 110: if ((active0 & 0x2000000000L) != 0L) return jjStopAtPos(8, 37); else if ((active0 & 0x8000000000L) != 0L) return jjStopAtPos(8, 39); return jjMoveStringLiteralDfa9_0(active0, 0x4000000000000L); case 111: return jjMoveStringLiteralDfa9_0(active0, 0x1000200000000L); default : break; } return jjStartNfa_0(7, active0); } }
NEMOparserTokenManager implements NEMOparserConstants { static private int jjMoveStringLiteralDfa8_0(long old0, long active0) { if (((active0 &= old0)) == 0L) return jjStartNfa_0(6, old0); try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_0(7, active0); return 8; } switch(curChar) { case 105: return jjMoveStringLiteralDfa9_0(active0, 0x100000000000L); case 108: if ((active0 & 0x8000000000000L) != 0L) return jjStopAtPos(8, 51); break; case 110: if ((active0 & 0x2000000000L) != 0L) return jjStopAtPos(8, 37); else if ((active0 & 0x8000000000L) != 0L) return jjStopAtPos(8, 39); return jjMoveStringLiteralDfa9_0(active0, 0x4000000000000L); case 111: return jjMoveStringLiteralDfa9_0(active0, 0x1000200000000L); default : break; } return jjStartNfa_0(7, active0); } NEMOparserTokenManager(SimpleCharStream stream);  NEMOparserTokenManager(SimpleCharStream stream, int lexState); }
NEMOparserTokenManager implements NEMOparserConstants { static private int jjMoveStringLiteralDfa8_0(long old0, long active0) { if (((active0 &= old0)) == 0L) return jjStartNfa_0(6, old0); try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_0(7, active0); return 8; } switch(curChar) { case 105: return jjMoveStringLiteralDfa9_0(active0, 0x100000000000L); case 108: if ((active0 & 0x8000000000000L) != 0L) return jjStopAtPos(8, 51); break; case 110: if ((active0 & 0x2000000000L) != 0L) return jjStopAtPos(8, 37); else if ((active0 & 0x8000000000L) != 0L) return jjStopAtPos(8, 39); return jjMoveStringLiteralDfa9_0(active0, 0x4000000000000L); case 111: return jjMoveStringLiteralDfa9_0(active0, 0x1000200000000L); default : break; } return jjStartNfa_0(7, 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(); }
NEMOparserTokenManager implements NEMOparserConstants { static private int jjMoveStringLiteralDfa8_0(long old0, long active0) { if (((active0 &= old0)) == 0L) return jjStartNfa_0(6, old0); try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_0(7, active0); return 8; } switch(curChar) { case 105: return jjMoveStringLiteralDfa9_0(active0, 0x100000000000L); case 108: if ((active0 & 0x8000000000000L) != 0L) return jjStopAtPos(8, 51); break; case 110: if ((active0 & 0x2000000000L) != 0L) return jjStopAtPos(8, 37); else if ((active0 & 0x8000000000L) != 0L) return jjStopAtPos(8, 39); return jjMoveStringLiteralDfa9_0(active0, 0x4000000000000L); case 111: return jjMoveStringLiteralDfa9_0(active0, 0x1000200000000L); default : break; } return jjStartNfa_0(7, 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; }