Examples of ScriptComponent


Examples of com.serotonin.m2m2.gviews.component.ScriptComponent

        // Validate
        if (StringUtils.isBlank(script))
            response.addContextualMessage("graphicRendererScriptScript", "viewEdit.graphic.missingScript");

        if (!response.getHasMessages()) {
            ScriptComponent c = (ScriptComponent) getViewComponent(viewComponentId);
            c.setScript(script);
            resetPointComponent(c);
        }

        return response;
    }
View Full Code Here

Examples of org.apache.servicemix.components.script.ScriptComponent

    }

    public void testSendingAndReceivingMessagesUsingSpring() throws Exception {
        Sender sender = (Sender) getBean("sender");
        assertNotNull(sender);
        ScriptComponent component = (ScriptComponent) getBean("receiver");
        assertNotNull(component);
        sender.sendMessages(1);

        List result = getResult();
        assertNotNull("Have not received any results from groovy!", result);
View Full Code Here

Examples of org.moyrax.javascript.ScriptComponent

      final ClassLoader classLoader) throws IOException {

    this(new ClassReader(classLoader.getResourceAsStream(
        hostClass.getName().replace(".", "/") + ".class")));

    this.script = new ScriptComponent(hostClass, classLoader);
    this.functions = script.getFunctionNames();
  }
View Full Code Here

Examples of org.moyrax.javascript.ScriptComponent

  public ComponentClassAdapter (final String hostClass,
      final ClassLoader classLoader) throws IOException {
    this(new ClassReader(classLoader.getResourceAsStream(
        hostClass.replace(".", "/") + ".class")));

    this.script = new ScriptComponent(hostClass, classLoader);
    this.functions = script.getFunctionNames();
  }
View Full Code Here

Examples of org.rhq.plugins.jbossas5.script.ScriptComponent

        PackageType mockPackageType = mock(PackageType.class);
        when(mockPackageType.getName()).thenReturn("script");

        //create object to test and inject required dependencies
        ScriptComponent objectUnderTest = new ScriptComponent();
        objectUnderTest.start(mockResourceContext);

        //run code under test
        Set<ResourcePackageDetails> result = objectUnderTest.discoverDeployedPackages(mockPackageType);

        //verify the results (Assert and mock verification)
        Assert.assertEquals(result.size(), 1);

        ResourcePackageDetails resultPackageDetails = (ResourcePackageDetails) result.toArray()[0];
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.