Examples of addParameter()


Examples of org.sbml.jsbml.KineticLaw.addParameter()

    LocalParameter k4 = new LocalParameter(2, 4);
    k3.setId("k1");
    k4.setId("k2");
    k3.setValue(2.72);
    k4.setValue(3.14);
    kl.addParameter(k3);
    kl.addParameter(k4);
    r1.setKineticLaw(kl);
    M.addReaction(r1);
    KineticLaw kl1 = M.getReaction(0).getKineticLaw();
    // assertTrue(!kl1.getParameter("k1").equals(k3)); // TODO: compare Parameter and LocalParameter

Examples of org.sbml.jsbml.Model.addParameter()

            } else if (elementName.equals("parameter")
                && list.getSBaseListType().equals(
                    ListOf.Type.listOfParameters)) {
              Parameter parameter = (Parameter) newContextObject;
              parameter.initDefaults();
              model.addParameter(parameter);

              return parameter;
            } else if (elementName.equals("initialAssignment")
                && list.getSBaseListType().equals(
                    ListOf.Type.listOfInitialAssignments)

Examples of org.springframework.batch.core.JobParametersBuilder.addParameter()

    JobParametersBuilder builder = new JobParametersBuilder();
    Map<String, JobParameter> jobParameters = stepExecution.getJobParameters().getParameters();
    ExecutionContext executionContext = stepExecution.getExecutionContext();
    if (useAllParentParameters) {
      for (String key : jobParameters.keySet()) {
        builder.addParameter(key, jobParameters.get(key));
      }
    }
    for (String key : keys) {
      if (key.endsWith("(long)")) {
        key = key.replace("(long)", "");

Examples of org.springframework.mock.web.MockHttpServletRequest.addParameter()

    filter.setProxyGrantingTicketStorage(mock(ProxyGrantingTicketStorage.class));
  }

  public void testNormalOperation() throws Exception {
    MockHttpServletRequest request = new MockHttpServletRequest("GET", "/demo/any-path");
    request.addParameter("ticket", "ST-0-ER94xMJmn6pha35CQRoZ");
    Authentication result = filter.getPreauthAuthentication(request, new MockHttpServletResponse());
    assertTrue(result != null);
  }

  @Test(expectedExceptions = AuthenticationException.class)

Examples of org.springframework.mock.web.portlet.MockActionRequest.addParameter()

        catch (Exception e)
        {
            // expected ...
        }
       
        request.addParameter("message", "hello");
       
        scriptPortlet.processAction(request, response);
    }
   
    public void testProcessEvent() throws Exception

Examples of org.springframework.mock.web.portlet.MockPortletRequest.addParameter()

*/
public class PortletWebRequestTests extends TestCase {

  public void testParameters() {
    MockPortletRequest portletRequest = new MockPortletRequest();
    portletRequest.addParameter("param1", "value1");
    portletRequest.addParameter("param2", "value2");
    portletRequest.addParameter("param2", "value2a");

    PortletWebRequest request = new PortletWebRequest(portletRequest);
    assertEquals("value1", request.getParameter("param1"));

Examples of org.springframework.mock.web.portlet.MockRenderRequest.addParameter()

    TestController tc = new TestController();
    MockRenderRequest request = new MockRenderRequest();   
    MockRenderResponse response = new MockRenderResponse();
    String name = "test";
    int age = 30;
    request.addParameter("name", name);
    request.addParameter("age", "" + age);
    request.setContextPath("test");
    ModelAndView mav = tc.handleRenderRequest(request, response);
    assertEquals("test-view", mav.getViewName());
    TestBean command = (TestBean)mav.getModel().get(tc.getCommandName());

Examples of org.springframework.mock.web.test.MockHttpServletRequest.addParameter()

  }

  public void testHandlerInterceptorSuppressesView() throws Exception {
    MockHttpServletRequest request = new MockHttpServletRequest(getServletContext(), "GET", "/view.do");
    request.addUserRole("role1");
    request.addParameter("noView", "true");
    MockHttpServletResponse response = new MockHttpServletResponse();
    complexDispatcherServlet.service(request, response);
    assertTrue("Not forwarded", response.getForwardedUrl() == null);
  }

Examples of org.springframework.roo.classpath.details.MethodMetadataBuilder.addParameter()

                targetType.getFullyQualifiedTypeName(), 0, DataType.VARIABLE,
                JavaType.WILDCARD_EXTENDS, null);
        final JavaType classParameterType = new JavaType(
                JavaType.CLASS.getFullyQualifiedTypeName(), 0, DataType.TYPE,
                null, Arrays.asList(wildEntityType));
        createMethodBuilder.addParameter("clazz", classParameterType);
        return createMethodBuilder;
    }

    private MethodMetadataBuilder getDomainTypeMethod(
            final String declaredById, final JavaType targetType) {

Examples of org.springframework.social.support.HttpRequestDecorator.addParameter()

    this.parameterName = parameterName;
  }

  public ClientHttpResponse intercept(final HttpRequest request, final byte[] body, ClientHttpRequestExecution execution) throws IOException {
    HttpRequestDecorator protectedResourceRequest = new HttpRequestDecorator(request);
    protectedResourceRequest.addParameter(parameterName, accessToken);
    return execution.execute(protectedResourceRequest, body);
  }

}
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.