@Test public void testGetTokenizer() { final JSONObject expectedTokenizer = mock(JSONObject.class); final JSONArray root = mock(JSONArray.class); doReturn(expectedTokenizer).when(factory).makeJSONObject(); doReturn(root).when(factory).getRoot(); final JSONValue actualTokenizer = factory.getTokenizer(); verify(expectedTokenizer).put("root", root); assertEquals(expectedTokenizer, actualTokenizer); }
public JSONValue getTokenizer() { final JSONObject tokenizer = makeJSONObject(); tokenizer.put("root", getRoot()); return tokenizer; }
MonacoPropertiesFactory { public JSONValue getTokenizer() { final JSONObject tokenizer = makeJSONObject(); tokenizer.put("root", getRoot()); return tokenizer; } }
MonacoPropertiesFactory { public JSONValue getTokenizer() { final JSONObject tokenizer = makeJSONObject(); tokenizer.put("root", getRoot()); return tokenizer; }  }
MonacoPropertiesFactory { public JSONValue getTokenizer() { final JSONObject tokenizer = makeJSONObject(); tokenizer.put("root", getRoot()); return tokenizer; }  JavaScriptObject getConstructionOptions(); JavaScriptObject getThemeData(); JSONArray getRules(); JavaScriptObject getCompletionItemProvider(final MonacoFEELVariableSuggestions variableSuggestions); JavaScriptObject getLanguageDefinition(); JSONValue getTokenizer(); JSONArray getRoot(); JSONArray row(final String pattern,
                         final String name); JavaScriptObject getLanguage(); }
MonacoPropertiesFactory { public JSONValue getTokenizer() { final JSONObject tokenizer = makeJSONObject(); tokenizer.put("root", getRoot()); return tokenizer; }  JavaScriptObject getConstructionOptions(); JavaScriptObject getThemeData(); JSONArray getRules(); JavaScriptObject getCompletionItemProvider(final MonacoFEELVariableSuggestions variableSuggestions); JavaScriptObject getLanguageDefinition(); JSONValue getTokenizer(); JSONArray getRoot(); JSONArray row(final String pattern,
                         final String name); JavaScriptObject getLanguage(); static final String FEEL_LANGUAGE_ID; static final String FEEL_THEME_ID; }