Codota Logo
ExpressionContainerConfig.getList
Code IndexAdd Codota to your IDE (free)

How to use
getList
method
in
org.apache.shindig.config.ExpressionContainerConfig

Best Java code snippets using org.apache.shindig.config.ExpressionContainerConfig.getList (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: org.apache.shindig/shindig-common

@Test
public void parseWithDefaultInheritance() throws Exception {
 JSONObject json = new JSONObject();
 json.put(CONTAINER_KEY, new String[]{CHILD_CONTAINER});
 json.put(PARENT_KEY, DEFAULT_CONTAINER);
 json.put(ARRAY_NAME, ARRAY_ALT_VALUE);
 // small nested data.
 JSONObject nested = new JSONObject();
 nested.put(NESTED_NAME, NESTED_ALT_VALUE);
 json.put(NESTED_KEY, nested);
 File childFile = createTemporaryFile(json, ".json");
 File parentFile = createDefaultContainer();
 createConfigForTest(childFile.getAbsolutePath() +
   JsonContainerConfigLoader.FILE_SEPARATOR + parentFile.getAbsolutePath());
 String value = config.getString(CHILD_CONTAINER, TOP_LEVEL_NAME);
 assertEquals(TOP_LEVEL_VALUE, value);
 Map<String, Object> nestedObj = config.getMap(CHILD_CONTAINER, NESTED_KEY);
 String nestedValue = nestedObj.get(NESTED_NAME).toString();
 assertEquals(NESTED_ALT_VALUE, nestedValue);
 String arrayValue = config.getString(CHILD_CONTAINER, ARRAY_NAME);
 assertEquals(ARRAY_ALT_VALUE, arrayValue);
 // Verify that the parent value wasn't overwritten as well.
 List<String> actual = new ArrayList<String>();
 for (Object val : config.getList(DEFAULT_CONTAINER, ARRAY_NAME)) {
  actual.add(val.toString());
 }
 List<String> expected = Arrays.asList(ARRAY_VALUE);
 assertEquals(expected, actual);
}
origin: org.wso2.org.apache.shindig/shindig-common

@Test
public void parseWithDefaultInheritance() throws Exception {
 JSONObject json = new JSONObject();
 json.put(CONTAINER_KEY, new String[]{CHILD_CONTAINER});
 json.put(PARENT_KEY, DEFAULT_CONTAINER);
 json.put(ARRAY_NAME, ARRAY_ALT_VALUE);
 // small nested data.
 JSONObject nested = new JSONObject();
 nested.put(NESTED_NAME, NESTED_ALT_VALUE);
 json.put(NESTED_KEY, nested);
 File childFile = createTemporaryFile(json, ".json");
 File parentFile = createDefaultContainer();
 createConfigForTest(childFile.getAbsolutePath() +
   JsonContainerConfigLoader.FILE_SEPARATOR + parentFile.getAbsolutePath());
 String value = config.getString(CHILD_CONTAINER, TOP_LEVEL_NAME);
 assertEquals(TOP_LEVEL_VALUE, value);
 Map<String, Object> nestedObj = config.getMap(CHILD_CONTAINER, NESTED_KEY);
 String nestedValue = nestedObj.get(NESTED_NAME).toString();
 assertEquals(NESTED_ALT_VALUE, nestedValue);
 String arrayValue = config.getString(CHILD_CONTAINER, ARRAY_NAME);
 assertEquals(ARRAY_ALT_VALUE, arrayValue);
 // Verify that the parent value wasn't overwritten as well.
 List<String> actual = new ArrayList<String>();
 for (Object val : config.getList(DEFAULT_CONTAINER, ARRAY_NAME)) {
  actual.add(val.toString());
 }
 List<String> expected = Arrays.asList(ARRAY_VALUE);
 assertEquals(expected, actual);
}
origin: apache/shindig

@Test
public void parseWithDefaultInheritance() throws Exception {
 JSONObject json = new JSONObject();
 json.put(CONTAINER_KEY, new String[]{CHILD_CONTAINER});
 json.put(PARENT_KEY, DEFAULT_CONTAINER);
 json.put(ARRAY_NAME, ARRAY_ALT_VALUE);
 // small nested data.
 JSONObject nested = new JSONObject();
 nested.put(NESTED_NAME, NESTED_ALT_VALUE);
 json.put(NESTED_KEY, nested);
 File childFile = createTemporaryFile(json, ".json");
 File parentFile = createDefaultContainer();
 createConfigForTest(childFile.getAbsolutePath() +
   JsonContainerConfigLoader.FILE_SEPARATOR + parentFile.getAbsolutePath());
 String value = config.getString(CHILD_CONTAINER, TOP_LEVEL_NAME);
 assertEquals(TOP_LEVEL_VALUE, value);
 Map<String, Object> nestedObj = config.getMap(CHILD_CONTAINER, NESTED_KEY);
 String nestedValue = nestedObj.get(NESTED_NAME).toString();
 assertEquals(NESTED_ALT_VALUE, nestedValue);
 String arrayValue = config.getString(CHILD_CONTAINER, ARRAY_NAME);
 assertEquals(ARRAY_ALT_VALUE, arrayValue);
 // Verify that the parent value wasn't overwritten as well.
 List<String> actual = new ArrayList<String>();
 for (Object val : config.getList(DEFAULT_CONTAINER, ARRAY_NAME)) {
  actual.add(val.toString());
 }
 List<String> expected = Arrays.asList(ARRAY_VALUE);
 assertEquals(expected, actual);
}
org.apache.shindig.configExpressionContainerConfiggetList

Popular methods of ExpressionContainerConfig

  • <init>
  • createExpressionContext
  • getContainers
  • getExpressions
  • getMap
  • getProperty
  • getString

Popular in Java

  • Running tasks concurrently on multiple threads
  • putExtra (Intent)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • runOnUiThread (Activity)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • InputStreamReader (java.io)
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now