NEMOparser implements NEMOparserConstants { static public void ReInit(java.io.InputStream stream) { ReInit(stream, null); } NEMOparser(java.io.InputStream stream);  NEMOparser(java.io.InputStream stream, String encoding);  NEMOparser(java.io.Reader stream);  NEMOparser(NEMOparserTokenManager tm); String parseNEMO(UserId userId,String strNEMO, DataBroker dataBroker, TenantManage tenantManage); static final String NEMO(UserId userId, DataBroker dataBroker, TenantManage tenantManage); static final String UpdateIntent(UserId userId, DataBroker dataBroker, TenantManage tenantManage); static final String DeleteIntent(UserId userId, DataBroker dataBroker, TenantManage tenantManage); static final String UpdateNode(UserId userId, DataBroker dataBroker, TenantManage tenantManage); static final String UpdateConnection(UserId userId, DataBroker dataBroker, TenantManage tenantManage); static final String UpdateFlow(UserId userId, DataBroker dataBroker, TenantManage tenantManage); static final String UpdateOperation(UserId userId, DataBroker dataBroker, TenantManage tenantManage); static final String NodeModel(UserId userId, DataBroker dataBroker, TenantManage tenantManage); static final String abstractNode(UpdateTemplateDefinitionLang definition); static final String abstractConnection(UpdateTemplateDefinitionLang definition); static final String abstractFlow(UpdateTemplateDefinitionLang definition); static final String abstractOperation(UpdateTemplateDefinitionLang definition); static final String DeleteNode(UserId userId, DataBroker dataBroker, TenantManage tenantManage); static final String DeleteConnection(UserId userId, DataBroker dataBroker, TenantManage tenantManage); static final String DeleteFlow(UserId userId, DataBroker dataBroker, TenantManage tenantManage); static final String DeleteOperation(UserId userId, DataBroker dataBroker, TenantManage tenantManage); static final String Query(UserId userId, DataBroker dataBroker, TenantManage tenantManage); static final LinkedHashMap<String,String> conditionTarget(); static final LinkedHashMap<String,String> property(); static final LinkedHashMap<String,String> nodeMultiProperty(); static void ReInit(java.io.InputStream stream); static void ReInit(java.io.InputStream stream, String encoding); static void ReInit(java.io.Reader stream); void ReInit(NEMOparserTokenManager tm); static final Token getNextToken(); static final Token getToken(int index); static ParseException generateParseException(); static final void enable_tracing(); static final void disable_tracing(); static public NEMOparserTokenManager token_source; static public Token token; static public Token jj_nt; }
@Test public void testInit_ReInit() throws Exception{ nemOparser = new NEMOparser(inputStream); field_NemoParser_jj_input_stream.set(nemOparser, simpleCharStream); field_NemoParser_token_source.set(nemOparser, nemOparserTokenManager); doNothing().when(simpleCharStream).ReInit(any(InputStream.class), any(String.class), any(int.class), any(int.class)); nemOparser.ReInit(inputStream); verify(simpleCharStream).ReInit(inputStream, null, 1, 1); field_NemoParser_jj_initialized_once.set(class1, false); field_NEMOparserTokenManager_input_stream.set(class3, null); field_SimpleCharStream_inputStream.set(class2,null); nemOparser = new NEMOparser(reader); field_NemoParser_jj_input_stream.set(nemOparser, simpleCharStream); doNothing().when(simpleCharStream).ReInit(any(Reader.class), any(int.class), any(int.class)); nemOparser.ReInit(reader); verify(simpleCharStream).ReInit(any(Reader.class), any(int.class), any(int.class)); }
@Test public void testReInit() throws Exception { nemOparser = new NEMOparser(nemOparserTokenManager); nemOparser.ReInit(nemOparserTokenManager); }