Examples of Subtask


Examples of com.atlassian.jira.rest.client.api.domain.Subtask

  @Test
  public void issueWithSubtasks() throws JSONException {
    final Issue issue = parseIssue("/json/issue/subtasks-5.json");
    Iterable<Subtask> subtasks = issue.getSubtasks();
    assertEquals(1, Iterables.size(subtasks));
    Subtask subtask = Iterables.get(subtasks, 0, null);
    assertNotNull(subtask);
    assertEquals("SAM-2", subtask.getIssueKey());
    assertEquals("Open", subtask.getStatus().getName());
    assertEquals("Subtask", subtask.getIssueType().getName());
  }
View Full Code Here

Examples of com.atlassian.jira.rest.client.api.domain.Subtask

    final String issueKey = json.getString("key");
    final JSONObject fields = json.getJSONObject("fields");
    final String summary = fields.getString("summary");
    final Status status = statusJsonParser.parse(fields.getJSONObject("status"));
    final IssueType issueType = issueTypeJsonParser.parse(fields.getJSONObject("issuetype"));
    return new Subtask(issueKey, issueUri, summary, issueType, status);
  }
View Full Code Here

Examples of com.atlassian.jira.rest.client.domain.Subtask

    final String issueKey = json.getString("key");
    final JSONObject fields = json.getJSONObject("fields");
    final String summary = fields.getString("summary");
    final Status status = statusJsonParser.parse(fields.getJSONObject("status"));
    final IssueType issueType = issueTypeJsonParser.parse(fields.getJSONObject("issuetype"));
    return new Subtask(issueKey, issueUri, summary, issueType, status);
  }
View Full Code Here

Examples of com.atlassian.jira.rest.client.domain.Subtask

  @Test
  public void issueWithSubtasks() throws JSONException {
    final Issue issue = parseIssue("/json/issue/subtasks-5.json");
    Iterable<Subtask> subtasks = issue.getSubtasks();
    assertEquals(1, Iterables.size(subtasks));
    Subtask subtask = Iterables.get(subtasks, 0, null);
    assertNotNull(subtask);
    assertEquals("SAM-2", subtask.getIssueKey());
    assertEquals("Open", subtask.getStatus().getName());
    assertEquals("Subtask", subtask.getIssueType().getName());
  }
View Full Code Here

Examples of com.atlassian.jira.rest.client.domain.Subtask

  @Test
  public void issueWithSubtasks() throws JSONException {
    final Issue issue = parseIssue("/json/issue/subtasks-5.json");
    Iterable<Subtask> subtasks = issue.getSubtasks();
    assertEquals(1, Iterables.size(subtasks));
    Subtask subtask = Iterables.get(subtasks, 0, null);
    assertNotNull(subtask);
    assertEquals("SAM-2", subtask.getIssueKey());
    assertEquals("Open", subtask.getStatus().getName());
    assertEquals("Subtask", subtask.getIssueType().getName());
  }
View Full Code Here

Examples of com.atlassian.jira.rest.client.domain.Subtask

    final String issueKey = json.getString("key");
    final JSONObject fields = json.getJSONObject("fields");
    final String summary = fields.getString("summary");
    final Status status = statusJsonParser.parse(fields.getJSONObject("status"));
    final IssueType issueType = issueTypeJsonParser.parse(fields.getJSONObject("issuetype"));
    return new Subtask(issueKey, issueUri, summary, issueType, status);
  }
View Full Code Here

Examples of hudson.model.queue.SubTask

                // sometime an interrupt aborts a build but without clearing the flag.
                // see issue #1583
                if (Thread.interrupted())   continue;
                if (induceDeath)        throw new ThreadDeath();

                SubTask task;
                try {
                    // transition from idle to building.
                    // perform this state change as an atomic operation wrt other queue operations
                    synchronized (queue) {
                        workUnit = grabJob();
                        workUnit.setExecutor(this);
                        if (LOGGER.isLoggable(FINE))
                            LOGGER.log(FINE, getName()+" grabbed "+workUnit+" from queue");
                        task = workUnit.work;
                        startTime = System.currentTimeMillis();
                        executable = task.createExecutable();
                    }
                    if (LOGGER.isLoggable(FINE))
                        LOGGER.log(FINE, getName()+" is going to execute "+executable);
                } catch (IOException e) {
                    LOGGER.log(Level.SEVERE, "Executor threw an exception", e);
View Full Code Here

Examples of hudson.model.queue.SubTask

        }
        Queue.Executable exec = executor.getCurrentExecutable();
        if (exec == null) {
            throw new IllegalArgumentException("cannot save an Executor that is not running anything");
        }
        SubTask parent = exec.getParent();
        this.task = parent instanceof Queue.Task ? (Queue.Task) parent : parent.getOwnerTask();
        if (task instanceof Queue.TransientTask) {
            throw new IllegalArgumentException("cannot save a TransientTask");
        }
    }
View Full Code Here

Examples of hudson.model.queue.SubTask

                // sometime an interrupt aborts a build but without clearing the flag.
                // see issue #1583
                if (Thread.interrupted())   continue;
                if (induceDeath)        throw new ThreadDeath();

                SubTask task;
                try {
                    // transition from idle to building.
                    // perform this state change as an atomic operation wrt other queue operations
                    synchronized (queue) {
                        workUnit = grabJob();
                        workUnit.setExecutor(this);
                        task = workUnit.work;
                        startTime = System.currentTimeMillis();
                        executable = task.createExecutable();
                    }
                } catch (IOException e) {
                    LOGGER.log(Level.SEVERE, "Executor threw an exception", e);
                    continue;
                } catch (InterruptedException e) {
View Full Code Here

Examples of xdoclet.SubTask

            }
        }

        // now try to guess because it wasn't specifically specified whether
        // it should be generated or not
        SubTask subtask = getSubTaskClassForClass(clazz);

        if (clazz.isAbstract() == true) {
            if (hasANonDocletGeneratedSubClass(clazz) == true) {
                return false;
            }

            // an abstract mdb/etc?
            if (subtask == null) {
                return false;
            }

            // if <entitycmp/bmp/session/> is on, then do the best to guess correctly
            if (DocletContext.getInstance().isSubTaskDefined(subtask.getSubTaskName()) == true) {
                //none of the above guesses worked, assume it's concrete!
                return true;
            }
            else {
                // if <entitycmp/bmp/session/> is off, so if class is abstract then the bean is abstract except for entity cmp beans in ejb2 cmp2
                if (CmpTagsHandler.isEntityCmp(clazz) && CmpTagsHandler.isUsingCmp2Impl(clazz)) {
                    return true;
                }

                return false;
            }
        }
        else {
            // if <entitycmp/bmp/> is on, then it's an error or not specify the class abstract, except for <session/> that non-abstract is also legal
            if (subtask != null && DocletContext.getInstance().isSubTaskDefined(subtask.getSubTaskName())) {
                if (subtask.getSubTaskName().equals(DocletTask.getSubTaskName(SessionSubTask.class))) {
                    return true;
                }

                String currentClassName = clazz.getQualifiedName();
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.