[hg] main-silver: stabilized IssueTest

  • From: Tomas Stupka < >
  • To:
  • Subject: [hg] main-silver: stabilized IssueTest
  • Date: Wed, 13 Mar 2013 06:40:56 -0700

changeset a4029d54fe35 in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/a4029d54fe35
description:
        stabilized IssueTest

diffstat:

 
bugtracking/test/unit/src/org/netbeans/modules/bugtracking/api/IssueTest.java 
|  11 ++++-----
 1 files changed, 5 insertions(+), 6 deletions(-)

diffs (35 lines):

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
@@ -113,7 +113,7 @@
         APITestIssue apiIssue = getAPIIssue();
         Issue issue = getIssue();
         
-        assertFalse(apiIssue.wasRefreshed);
+        apiIssue.wasRefreshed = false;
         issue.refresh();
         assertTrue(apiIssue.wasRefreshed);
     }
@@ -145,9 +145,8 @@
         APITestIssue apiIssue = getAPIIssue();
         Issue issue = getIssue();
         
-        
-        assertFalse(apiIssue.wasClosedOnComment);
-        assertNull(apiIssue.addedComment);
+        apiIssue.wasClosedOnComment = false;
+        apiIssue.addedComment = null;
         
         String comment = "cmt";
         boolean refresh = true;
@@ -166,8 +165,8 @@
         APITestIssue apiIssue = getAPIIssue();
         Issue issue = getIssue();
         
-        assertNull(apiIssue.attachedFile);
-        assertNull(apiIssue.attachedPatchDesc);
+        apiIssue.attachedFile = null;
+        apiIssue.attachedPatchDesc = null;
         
         String desc = "desc";
         File file = new File("somefile");

[hg] main-silver: stabilized IssueTest

Tomas Stupka 03/13/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