Tabnine Logo
VariableInterpolation.interpolate
Code IndexAdd Tabnine to your IDE (free)

How to use
interpolate
method
in
org.guvnor.ala.util.VariableInterpolation

Best Java code snippets using org.guvnor.ala.util.VariableInterpolation.interpolate (Showing top 9 results out of 315)

origin: org.guvnor/guvnor-ala-spi

@Test
public void testPreserveImplementedInterfaces() {
  Object object = new Test1Class();
  Object newObject = VariableInterpolation.interpolate(new HashMap<>(),
                             object);
  assertTrue(newObject instanceof Test1);
  object = new Test2Class();
  newObject = VariableInterpolation.interpolate(new HashMap<>(),
                         object);
  assertTrue(newObject instanceof Test1);
  object = new Test3Class();
  newObject = VariableInterpolation.interpolate(new HashMap<>(),
                         object);
  assertTrue(newObject instanceof Test1);
}
origin: org.kie.workbench/kie-wb-common-ala-spi

@Test
public void testPreserveImplementedInterfaces() {
  Object object = new Test1Class();
  Object newObject = VariableInterpolation.interpolate(new HashMap<>(),
                             object);
  assertTrue(newObject instanceof Test1);
  object = new Test2Class();
  newObject = VariableInterpolation.interpolate(new HashMap<>(),
                         object);
  assertTrue(newObject instanceof Test1);
  object = new Test3Class();
  newObject = VariableInterpolation.interpolate(new HashMap<>(),
                         object);
  assertTrue(newObject instanceof Test1);
}
origin: org.guvnor/guvnor-ala-wildfly-provider

  @Test
  public void testVariablesResolution() {
    Map<String, String> values = new HashMap<>();
    values.put(ContextAwareWildflyRuntimeExecConfig.WAR_PATH,
          FILE_PATH);
    values.put(ContextAwareWildflyRuntimeExecConfig.REDEPLOY_STRATEGY,
          REDEPLOY_OPTION);
    values.put(ContextAwareWildflyRuntimeExecConfig.RUNTIME_NAME,
          RUNTIME_NAME);

    final ContextAwareWildflyRuntimeExecConfig config = new ContextAwareWildflyRuntimeExecConfig();
    final ContextAwareWildflyRuntimeExecConfig varConfig = interpolate(singletonMap("input",
                                            values),
                                      config);
    assertEquals(FILE_PATH,
           varConfig.getWarPath());
    assertEquals(REDEPLOY_OPTION,
           varConfig.getRedeployStrategy());
    assertEquals(RUNTIME_NAME,
           varConfig.getRuntimeName());
  }
}
origin: org.guvnor/guvnor-ala-spi

  ((ContextAware) output).setContext(Collections.unmodifiableMap(context.getValues()));
final Object newOutput = interpolate(context.getValues(),
                   output);
if (executor == null) {
origin: org.kie.workbench/kie-wb-common-ala-spi

  ((ContextAware) output).setContext(Collections.unmodifiableMap(context.getValues()));
final Object newOutput = interpolate(context.getValues(),
                   output);
if (executor == null) {
origin: org.kie.workbench/kie-wb-common-ala-spi

@Test
public void basicTest() {
  final Test1 object = new Test1() {
  };
  final Test1 newObject = VariableInterpolation.interpolate(new HashMap<String, Object>() {{
                                 put("input",
                                   new HashMap<String, String>() {{
                                     put("value1",
                                       "myvalue1");
                                     put("value2",
                                       "myvalue2");
                                   }});
                               }},
                               object);
  assertEquals("myvalue1",
         newObject.getValue1());
  assertEquals("myvalue2",
         newObject.getValue2());
  assertEquals("myvalue1",
         newObject.getValue3());
}
origin: org.guvnor/guvnor-ala-spi

@Test
public void missingContentTest() {
  final Test1 object = new Test1() {
  };
  final Test1 newObject = VariableInterpolation.interpolate(new HashMap<String, Object>() {{
                                 put("input",
                                   new HashMap<String, String>() {{
                                     put("value2",
                                       "myvalue2");
                                   }});
                               }},
                               object);
  assertEquals("",
         newObject.getValue1());
  assertEquals("myvalue2",
         newObject.getValue2());
  assertEquals("",
         newObject.getValue3());
}
origin: org.kie.workbench/kie-wb-common-ala-spi

@Test
public void missingContentTest() {
  final Test1 object = new Test1() {
  };
  final Test1 newObject = VariableInterpolation.interpolate(new HashMap<String, Object>() {{
                                 put("input",
                                   new HashMap<String, String>() {{
                                     put("value2",
                                       "myvalue2");
                                   }});
                               }},
                               object);
  assertEquals("",
         newObject.getValue1());
  assertEquals("myvalue2",
         newObject.getValue2());
  assertEquals("",
         newObject.getValue3());
}
origin: org.guvnor/guvnor-ala-spi

@Test
public void basicTest() {
  final Test1 object = new Test1() {
  };
  final Test1 newObject = VariableInterpolation.interpolate(new HashMap<String, Object>() {{
                                 put("input",
                                   new HashMap<String, String>() {{
                                     put("value1",
                                       "myvalue1");
                                     put("value2",
                                       "myvalue2");
                                   }});
                               }},
                               object);
  assertEquals("myvalue1",
         newObject.getValue1());
  assertEquals("myvalue2",
         newObject.getValue2());
  assertEquals("myvalue1",
         newObject.getValue3());
}
org.guvnor.ala.utilVariableInterpolationinterpolate

Popular methods of VariableInterpolation

  • proxy

Popular in Java

  • Finding current android device location
  • notifyDataSetChanged (ArrayAdapter)
  • getApplicationContext (Context)
  • putExtra (Intent)
  • 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
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • JPanel (javax.swing)
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now