DirectoryEntry.java

1
package fi.eis.libraries.di.context.deployment;
2
3
import java.io.File;
4
import java.net.MalformedURLException;
5
import java.net.URL;
6
7
class DirectoryEntry implements Entry {
8
9
    private String path;
10
    private File file;
11
12
    @Override
13
    public String getName() {
14 1 1. getName : replaced return value with "" for fi/eis/libraries/di/context/deployment/DirectoryEntry::getName → KILLED
        return path;
15
    }
16
17
    @Override
18
    public URL getUrl() throws MalformedURLException {
19 3 1. getUrl : removed call to java/net/URI::toURL → NO_COVERAGE
2. getUrl : removed call to java/io/File::toURI → NO_COVERAGE
3. getUrl : replaced return value with null for fi/eis/libraries/di/context/deployment/DirectoryEntry::getUrl → NO_COVERAGE
        return file.toURI().toURL();
20
    }
21
22
    public DirectoryEntry setPath(String path) {
23 1 1. setPath : Removed assignment to member variable path → KILLED
        this.path = path;
24 1 1. setPath : replaced return value with null for fi/eis/libraries/di/context/deployment/DirectoryEntry::setPath → SURVIVED
        return this;
25
    }
26
27
    public File getFile() {
28 1 1. getFile : replaced return value with null for fi/eis/libraries/di/context/deployment/DirectoryEntry::getFile → KILLED
        return file;
29
    }
30
31
    public DirectoryEntry setFile(File dir) {
32 1 1. setFile : Removed assignment to member variable file → KILLED
        this.file = dir;
33 1 1. setFile : replaced return value with null for fi/eis/libraries/di/context/deployment/DirectoryEntry::setFile → KILLED
        return this;
34
    }
35
36
}

Mutations

14

1.1
Location : getName
Killed by : fi.eis.libraries.di.test.deploymentunit.DIClassScanningTest.testDi(fi.eis.libraries.di.test.deploymentunit.DIClassScanningTest)
replaced return value with "" for fi/eis/libraries/di/context/deployment/DirectoryEntry::getName → KILLED

19

1.1
Location : getUrl
Killed by : none
removed call to java/net/URI::toURL → NO_COVERAGE

2.2
Location : getUrl
Killed by : none
removed call to java/io/File::toURI → NO_COVERAGE

3.3
Location : getUrl
Killed by : none
replaced return value with null for fi/eis/libraries/di/context/deployment/DirectoryEntry::getUrl → NO_COVERAGE

23

1.1
Location : setPath
Killed by : fi.eis.libraries.di.test.deploymentunit.DIClassScanningTest.testDi(fi.eis.libraries.di.test.deploymentunit.DIClassScanningTest)
Removed assignment to member variable path → KILLED

24

1.1
Location : setPath
Killed by : none
replaced return value with null for fi/eis/libraries/di/context/deployment/DirectoryEntry::setPath → SURVIVED
Covering tests

28

1.1
Location : getFile
Killed by : fi.eis.libraries.di.test.deploymentunit.DIClassScanningTest.testDi(fi.eis.libraries.di.test.deploymentunit.DIClassScanningTest)
replaced return value with null for fi/eis/libraries/di/context/deployment/DirectoryEntry::getFile → KILLED

32

1.1
Location : setFile
Killed by : fi.eis.libraries.di.test.deploymentunit.DIClassScanningTest.testDi(fi.eis.libraries.di.test.deploymentunit.DIClassScanningTest)
Removed assignment to member variable file → KILLED

33

1.1
Location : setFile
Killed by : fi.eis.libraries.di.test.deploymentunit.DIClassScanningTest.testDi(fi.eis.libraries.di.test.deploymentunit.DIClassScanningTest)
replaced return value with null for fi/eis/libraries/di/context/deployment/DirectoryEntry::setFile → KILLED

Active mutators

Tests examined


Report generated by PIT 1.25.4 support