[hg] main-silver: minor

  • From: Tomas Stupka < >
  • To:
  • Subject: [hg] main-silver: minor
  • Date: Sat, 02 Mar 2013 03:35:48 -0800

changeset 59a7d37dc23a in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/59a7d37dc23a
description:
        minor

diffstat:

 bugtracking/test/unit/src/org/netbeans/modules/bugtracking/TestQuery.java    
    |   2 +-
 
bugtracking/test/unit/src/org/netbeans/modules/bugtracking/api/APITestIssue.java
 |  11 ++++++---
 
bugtracking/test/unit/src/org/netbeans/modules/bugtracking/api/IssueTest.java 
   |   7 ++++++
 3 files changed, 15 insertions(+), 5 deletions(-)

diffs (69 lines):

diff --git 
a/bugtracking/test/unit/src/org/netbeans/modules/bugtracking/TestQuery.java 
b/bugtracking/test/unit/src/org/netbeans/modules/bugtracking/TestQuery.java
--- 
a/bugtracking/test/unit/src/org/netbeans/modules/bugtracking/TestQuery.java
+++ 
b/bugtracking/test/unit/src/org/netbeans/modules/bugtracking/TestQuery.java
@@ -59,7 +59,7 @@
 
     public abstract boolean isSaved();
 
-    public abstract Collection<TestIssue> getIssues();
+    public abstract Collection<? extends TestIssue> getIssues();
 
     public abstract boolean contains(String id);
 
diff --git 
a/bugtracking/test/unit/src/org/netbeans/modules/bugtracking/api/APITestIssue.java
 
b/bugtracking/test/unit/src/org/netbeans/modules/bugtracking/api/APITestIssue.java
--- 
a/bugtracking/test/unit/src/org/netbeans/modules/bugtracking/api/APITestIssue.java
+++ 
b/bugtracking/test/unit/src/org/netbeans/modules/bugtracking/api/APITestIssue.java
@@ -59,6 +59,7 @@
 public class APITestIssue extends TestIssue {
     static final String ID_1 = "1";
     static final String ID_2 = "2";
+    static final String ID_SUB_3 = "3";
 
     static final String SUMMARY_SUF = " - summary";
     static final String TOOLTIP_SUF = " - tooltip";
@@ -73,14 +74,16 @@
     boolean idFinished;
     File attachedFile;
     private BugtrackingController controller;
+    private final APITestRepository repo;
 
-    public APITestIssue(String id) {
-        this(id, false);
+    public APITestIssue(String id, APITestRepository repo) {
+        this(id, repo, false);
     }
     
-    public APITestIssue(String id, boolean isNew) {
+    public APITestIssue(String id, APITestRepository repo, boolean isNew) {
         this.id = id;
         this.isNew = isNew;
+        this.repo = repo;
     }
     
     @Override
@@ -164,7 +167,7 @@
 
     @Override
     public String[] getSubtasks() {
-        throw new UnsupportedOperationException("Not supported yet."); //To 
change body of generated methods, choose Tools | Templates.
+        return new String[] {APITestIssue.ID_SUB_3};
     }
 
     @Override
diff --git 
a/bugtracking/test/unit/src/org/netbeans/modules/bugtracking/api/IssueTest.java
 
b/bugtracking/test/unit/src/org/netbeans/modules/bugtracking/api/IssueTest.java
--- 
a/bugtracking/test/unit/src/org/netbeans/modules/bugtracking/api/IssueTest.java
+++ 
b/bugtracking/test/unit/src/org/netbeans/modules/bugtracking/api/IssueTest.java
@@ -201,6 +201,13 @@
         assertFalse(refreshed[0]);
     }
     
+//    public void testGetSubtasks() {
+//        APITestIssue apiIssue = getAPIIssue();
+//        Issue issue = getIssue();
+//        
+//        assertEquals(apiIssue.getSubtasks().length, issue.getSubtasks());
+//    }
+    
     private APITestRepository getApiRepo() {
         return APITestKit.getAPIRepo(APITestRepository.ID);
     }

[hg] main-silver: minor

Tomas Stupka 03/02/2013

<Possible follow-up(s)>

[hg] main-silver: minor

Tomas Stupka 03/02/2013

[hg] main-silver: minor

Tomas Stupka 03/05/2013

[hg] main-silver: minor

Tomas Stupka 03/05/2013

[hg] main-silver: minor

Tomas Stupka 03/08/2013

[hg] main-silver: minor

Tomas Stupka 03/19/2013

Project Features

About this Project

ConnectedDeveloper was started in November 2009, is owned by tpavek, and has 66 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close