@Test public void testRow() { final String pattern = "pattern"; final String name = "name"; final JsRegExp regExp = mock(JsRegExp.class); final JSONObject jsonRegExp = mock(JSONObject.class); final JSONString jsonName = mock(JSONString.class); final JSONArray expectedRow = mock(JSONArray.class); doReturn(regExp).when(factory).makeRegExp(pattern); doReturn(jsonRegExp).when(factory).makeJSONObject(regExp); doReturn(jsonName).when(factory).makeJSONString(name); doReturn(expectedRow).when(factory).makeJSONArray(); final JSONValue actualRow = factory.row(pattern, name); verify(expectedRow).set(0, jsonRegExp); verify(expectedRow).set(1, jsonName); assertEquals(expectedRow, actualRow); }
public JSONArray row(final String pattern, final String name) { final JSONArray row = makeJSONArray(); row.set(0, makeJSONObject(makeRegExp(pattern))); row.set(1, makeJSONString(name)); return row; }
MonacoPropertiesFactory { public JSONArray row(final String pattern, final String name) { final JSONArray row = makeJSONArray(); row.set(0, makeJSONObject(makeRegExp(pattern))); row.set(1, makeJSONString(name)); return row; } }
MonacoPropertiesFactory { public JSONArray row(final String pattern, final String name) { final JSONArray row = makeJSONArray(); row.set(0, makeJSONObject(makeRegExp(pattern))); row.set(1, makeJSONString(name)); return row; }  }
MonacoPropertiesFactory { public JSONArray row(final String pattern, final String name) { final JSONArray row = makeJSONArray(); row.set(0, makeJSONObject(makeRegExp(pattern))); row.set(1, makeJSONString(name)); return row; }  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 JSONArray row(final String pattern, final String name) { final JSONArray row = makeJSONArray(); row.set(0, makeJSONObject(makeRegExp(pattern))); row.set(1, makeJSONString(name)); return row; }  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; }