Examples of submit()


Examples of org.springframework.core.task.AsyncTaskExecutor.submit()

    @Test
    public void testSubmissionMethod() throws InterruptedException, ExecutionException, TimeoutException {
        AsyncTaskExecutor executor = new SimpleAsyncTaskExecutor("testSubmissionMethod");
        SignallingRunnable runner = new SignallingRunnable("testSubmissionMethod");
        Future<?> future = executor.submit(runner);
        Object result = future.get(5L, TimeUnit.SECONDS);

        assertLastExecutionOperation(runner);
        assertCurrentThreadExecution();
View Full Code Here

Examples of org.springframework.core.task.SimpleAsyncTaskExecutor.submit()

    @Test
    public void testSubmissionMethod() throws InterruptedException, ExecutionException, TimeoutException {
        AsyncTaskExecutor executor = new SimpleAsyncTaskExecutor("testSubmissionMethod");
        SignallingRunnable runner = new SignallingRunnable("testSubmissionMethod");
        Future<?> future = executor.submit(runner);
        Object result = future.get(5L, TimeUnit.SECONDS);

        assertLastExecutionOperation(runner);
        assertCurrentThreadExecution();
View Full Code Here

Examples of org.uiautomation.ios.wkrdp.model.RemoteWebElement.submit()

  @Override
  public Response handle() throws Exception {
    String ref = getRequest().getVariableValue(":reference");
    RemoteWebElement element = getWebDriver().createElement(ref);
    element.submit();
    Response res = new Response();
    res.setSessionId(getSession().getSessionId());
    res.setStatus(0);
    res.setValue(new JSONObject());
    return res;
View Full Code Here

Examples of org.waveprotocol.wave.model.wave.data.BlipData.submit()

    assertEquals(47L, listener.getBlipNewTimestamp());
  }

  public void testBlipSubmitEventReceived() {
    BlipData root = createBlip();
    root.submit();
    assertEquals(root, listener.getBlipModified());
  }

  private BlipData createBlip() {
    return createBlip("b+default");
View Full Code Here

Examples of org.xwiki.test.ui.framework.elements.editor.ChangeAvatarPage.submit()

    @Test
    public void testChangeAvatarImage()
    {
        ChangeAvatarPage changeAvatarImage = this.customProfilePage.changeAvatarImage();
        changeAvatarImage.setAvatarImage(IMAGE_LOCATION);
        changeAvatarImage.submit();
        Assert.assertEquals(IMAGE_NAME, this.customProfilePage.getAvatarImageName());
    }

    /** Functionality check: changing the password. */
    @Test
View Full Code Here

Examples of org.xwiki.test.ui.framework.elements.editor.ChangePasswordPage.submit()

        // Change the password
        PreferencesUserProfilePage preferencesPage = this.customProfilePage.switchToPreferences();
        ChangePasswordPage changePasswordPage = preferencesPage.changePassword();
        String newPassword = RandomStringUtils.randomAlphanumeric(6);
        changePasswordPage.changePassword(newPassword, newPassword);
        changePasswordPage.submit();

        // Logout
        getUtil().forceGuestUser();
        HomePage home = new HomePage();
        home.gotoPage();
View Full Code Here

Examples of uk.gov.nationalarchives.droid.core.interfaces.archive.ContainerIdentifier.submit()

        String containerFormat = getContainerFormat(results);
        try {
            if (containerFormatResolver != null && containerFormat != null) {
                ContainerIdentifier containerIdentifier = containerIdentifierFactory.getIdentifier(containerFormat);
                containerIdentifier.setMaxBytesToScan(maxBytesToScan);
                IdentificationResultCollection containerResults = containerIdentifier.submit(request);
                droidCore.removeLowerPriorityHits(containerResults);
                droidCore.checkForExtensionsMismatches(containerResults, request.getExtension());
                containerResults.setFileLength(request.size());
                containerResults.setRequestMetaData(request.getRequestMetaData());
                return containerResults.getResults().isEmpty() ? null : containerResults;
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.