ZipFileEntry.java

1
package fi.eis.libraries.di.context.deployment;
2
3
import java.net.MalformedURLException;
4
import java.net.URL;
5
6
class ZipFileEntry implements Entry {
7
8
    private String name;
9
    private String archiveUrl;
10
11
    ZipFileEntry(String archiveUrl) {
12 1 1. <init> : Removed assignment to member variable archiveUrl → SURVIVED
        this.archiveUrl = archiveUrl;
13
    }
14
15
    @Override
16
    public String getName() {
17 1 1. getName : replaced return value with "" for fi/eis/libraries/di/context/deployment/ZipFileEntry::getName → KILLED
        return name;
18
    }
19
20
    ZipFileEntry setName(String name) {
21 1 1. setName : Removed assignment to member variable name → KILLED
        this.name = name;
22 1 1. setName : replaced return value with null for fi/eis/libraries/di/context/deployment/ZipFileEntry::setName → KILLED
        return this;
23
    }
24
25
    @Override
26
    public URL getUrl() throws MalformedURLException {
27 8 1. getUrl : replaced call to java/lang/StringBuilder::append with receiver → NO_COVERAGE
2. getUrl : replaced return value with null for fi/eis/libraries/di/context/deployment/ZipFileEntry::getUrl → NO_COVERAGE
3. getUrl : replaced call to java/lang/StringBuilder::append with receiver → NO_COVERAGE
4. getUrl : removed call to java/net/URL::<init> → NO_COVERAGE
5. getUrl : removed call to java/lang/StringBuilder::append → NO_COVERAGE
6. getUrl : removed call to java/lang/StringBuilder::toString → NO_COVERAGE
7. getUrl : removed call to java/lang/StringBuilder::<init> → NO_COVERAGE
8. getUrl : removed call to java/lang/StringBuilder::append → NO_COVERAGE
        return new URL(archiveUrl + name);
28
    }
29
30
}

Mutations

12

1.1
Location : <init>
Killed by : none
Removed assignment to member variable archiveUrl → SURVIVED
Covering tests

17

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

21

1.1
Location : setName
Killed by : fi.eis.libraries.di.test.deploymentunit.DIClassScanningJarLoadingTest.testDi(fi.eis.libraries.di.test.deploymentunit.DIClassScanningJarLoadingTest)
Removed assignment to member variable name → KILLED

22

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

27

1.1
Location : getUrl
Killed by : none
replaced call to java/lang/StringBuilder::append with receiver → NO_COVERAGE

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

3.3
Location : getUrl
Killed by : none
replaced call to java/lang/StringBuilder::append with receiver → NO_COVERAGE

4.4
Location : getUrl
Killed by : none
removed call to java/net/URL::<init> → NO_COVERAGE

5.5
Location : getUrl
Killed by : none
removed call to java/lang/StringBuilder::append → NO_COVERAGE

6.6
Location : getUrl
Killed by : none
removed call to java/lang/StringBuilder::toString → NO_COVERAGE

7.7
Location : getUrl
Killed by : none
removed call to java/lang/StringBuilder::<init> → NO_COVERAGE

8.8
Location : getUrl
Killed by : none
removed call to java/lang/StringBuilder::append → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT 1.25.4 support