Fixed FileProject.delete() bug. Preparing for libpit 1.1.6
This commit is contained in:
@ -121,6 +121,8 @@ class FileProjectTest {
|
||||
|
||||
assertEquals rootProj.name, 'renamedTestDir'
|
||||
assertTrue new File('renamedTestDir').exists()
|
||||
|
||||
assert rootProj.source.deleteDir()
|
||||
}
|
||||
|
||||
@Test void testCreateNewIssue() {
|
||||
|
@ -15,16 +15,16 @@ class FilterTest {
|
||||
|
||||
proj = new MockProject('proj1')
|
||||
|
||||
def issue = new Issue( '0000', Category.TASK, 5)
|
||||
def issue = new MockIssue( '0000', Category.TASK, 5)
|
||||
proj.issues['0000'] = issue
|
||||
|
||||
issue = new Issue('0001', Category.BUG, 3)
|
||||
issue = new MockIssue('0001', Category.BUG, 3)
|
||||
proj.issues['0001'] = issue
|
||||
|
||||
issue = new Issue('0002', Category.CLOSED, 9)
|
||||
issue = new MockIssue('0002', Category.CLOSED, 9)
|
||||
proj.issues['0002'] = issue
|
||||
|
||||
issue = new Issue('0003', Category.FEATURE, 0)
|
||||
issue = new MockIssue('0003', Category.FEATURE, 0)
|
||||
proj.issues['0003'] = issue
|
||||
|
||||
def subProj = new MockProject('subproj1')
|
||||
|
6
libpit/test/com/jdbernard/pit/MockIssue.groovy
Normal file
6
libpit/test/com/jdbernard/pit/MockIssue.groovy
Normal file
@ -0,0 +1,6 @@
|
||||
package com.jdbernard.pit
|
||||
|
||||
public class MockIssue extends Issue {
|
||||
public MockIssue(String id, Category c, int p) { super (id, c, p) }
|
||||
public boolean delete() { return true }
|
||||
}
|
Reference in New Issue
Block a user