DeploymentUnitContext.java

1
package fi.eis.libraries.di;
2
3
import java.io.File;
4
import java.io.IOException;
5
import java.lang.reflect.Modifier;
6
import java.net.MalformedURLException;
7
import java.net.URL;
8
import java.util.ArrayList;
9
import java.util.Enumeration;
10
import java.util.List;
11
import java.util.zip.ZipEntry;
12
import java.util.zip.ZipException;
13
import java.util.zip.ZipFile;
14
15
import fi.eis.libraries.di.SimpleLogger.LogLevel;
16
17
/**
18
 * Creation Date: 1.12.2014
19
 * Creation Time: 21:55
20
 * <p>
21
 * This class borrows heavily from JBoss Weld class FileSystemBeanArchiveHandler, which authors are:
22
 * Pete Muir, Marko Luksa, Martin Kouba
23
 * </p>
24
 * <p>
25
 * FileSystemBeanArchiveHandler has been licensed under Apache License,
26
 * Version 2.0. It permits releasing under different license.
27
 * (http://en.wikipedia.org/wiki/Comparison_of_free_and_open-source_software_licenses)
28
 * </p>
29
 *
30
 * @author eis
31
 */
32
public class DeploymentUnitContext extends Context {
33
    private static final String PROCOTOL_JAR = "jar";
34
    private static final String CLASS_FILE_EXTENSION = ".class";
35
36
    public DeploymentUnitContext(Class sourceClass) {
37 5 1. <init> : Substituted 0 with 1 → KILLED
2. <init> : Substituted 0 with 1 → KILLED
3. <init> : Substituted 0 with -1 → KILLED
4. <init> : Substituted 0 with 1 → KILLED
5. <init> : Substituted 0 with -1 → KILLED
        super();
38
        // a jar or a directory path of whoever initiated us
39 1 1. <init> : removed call to fi/eis/libraries/di/DeploymentUnitContext::initUsing → KILLED
        initUsing(sourceClass);
40
    }
41
42
    public DeploymentUnitContext(Class sourceClass, LogLevel logLevel) {
43 5 1. <init> : Substituted 0 with 1 → KILLED
2. <init> : Substituted 0 with 1 → KILLED
3. <init> : Substituted 0 with -1 → KILLED
4. <init> : Substituted 0 with 1 → KILLED
5. <init> : Substituted 0 with -1 → KILLED
        super();
44 1 1. <init> : removed call to fi/eis/libraries/di/DeploymentUnitContext::setLogLevel → KILLED
        setLogLevel(logLevel);
45 1 1. <init> : removed call to fi/eis/libraries/di/DeploymentUnitContext::initUsing → KILLED
        initUsing(sourceClass);
46
    }
47
48
    public DeploymentUnitContext(File sourceJar) {
49 5 1. <init> : Substituted 0 with 1 → KILLED
2. <init> : Substituted 0 with 1 → KILLED
3. <init> : Substituted 0 with -1 → KILLED
4. <init> : Substituted 0 with 1 → KILLED
5. <init> : Substituted 0 with -1 → KILLED
        super();
50 2 1. <init> : removed call to fi/eis/libraries/di/DeploymentUnitContext::handle → KILLED
2. <init> : removed call to fi/eis/libraries/di/DeploymentUnitContext::initFrom → KILLED
        initFrom(handle(sourceJar));
51
    }
52
53
    public DeploymentUnitContext(File sourceJar, LogLevel logLevel) {
54 5 1. <init> : Substituted 0 with 1 → NO_COVERAGE
2. <init> : Substituted 0 with 1 → NO_COVERAGE
3. <init> : Substituted 0 with -1 → NO_COVERAGE
4. <init> : Substituted 0 with 1 → NO_COVERAGE
5. <init> : Substituted 0 with -1 → NO_COVERAGE
        super();
55 1 1. <init> : removed call to fi/eis/libraries/di/DeploymentUnitContext::setLogLevel → NO_COVERAGE
        setLogLevel(logLevel);
56 2 1. <init> : removed call to fi/eis/libraries/di/DeploymentUnitContext::handle → NO_COVERAGE
2. <init> : removed call to fi/eis/libraries/di/DeploymentUnitContext::initFrom → NO_COVERAGE
        initFrom(handle(sourceJar));
57
    }
58
59
    private void initUsing(Class sourceClass) {
60 5 1. initUsing : removed call to java/lang/Class::getProtectionDomain → KILLED
2. initUsing : removed call to java/security/ProtectionDomain::getCodeSource → KILLED
3. initUsing : removed call to java/security/CodeSource::getLocation → KILLED
4. initUsing : removed call to fi/eis/libraries/di/DeploymentUnitContext::handle → KILLED
5. initUsing : removed call to fi/eis/libraries/di/DeploymentUnitContext::initFrom → KILLED
        initFrom(handle(sourceClass.getProtectionDomain().getCodeSource().getLocation()));
61
    }
62
63
    private void initFrom(BeanArchiveBuilder builder) {
64 1 1. initFrom : removed call to fi/eis/libraries/di/DeploymentUnitContext$BeanArchiveBuilder::getClasses → KILLED
        List<Class> classes = builder.getClasses();
65
        logger.debug("got classes " + classes);
66 2 1. initFrom : removed call to fi/eis/libraries/di/DependencyInjection::classes → KILLED
2. initFrom : removed call to java/util/List::add → KILLED
        super.modules.add(DependencyInjection.classes(classes));
67
    }
68
69
    public BeanArchiveBuilder handle(URL url) {
70 5 1. handle : removed call to java/io/File::<init> → KILLED
2. handle : removed call to java/net/URL::getPath → KILLED
3. handle : removed call to fi/eis/libraries/di/DeploymentUnitContext::handle → KILLED
4. handle : replaced return value with null for fi/eis/libraries/di/DeploymentUnitContext::handle → KILLED
5. handle : mutated return of Object value for fi/eis/libraries/di/DeploymentUnitContext::handle to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return handle(new File(url.getPath()));
71
    }
72
73
    public BeanArchiveBuilder handle(File file) {
74
75 9 1. handle : not equal to greater than → SURVIVED
2. handle : negated conditional → KILLED
3. handle : removed call to java/io/File::exists → KILLED
4. handle : removed conditional - replaced equality check with false → KILLED
5. handle : removed conditional - replaced equality check with true → KILLED
6. handle : not equal to less than → KILLED
7. handle : not equal to less or equal → KILLED
8. handle : not equal to greater or equal → KILLED
9. handle : not equal to equal → KILLED
        if (!file.exists()) {
76 11 1. handle : Substituted 1 with 2 → SURVIVED
2. handle : Substituted 1 with 0 → KILLED
3. handle : Substituted 0 with 1 → KILLED
4. handle : Substituted 0 with 1 → KILLED
5. handle : Substituted 1 with 0 → KILLED
6. handle : Substituted 1 with -1 → KILLED
7. handle : Substituted 0 with -1 → KILLED
8. handle : Substituted 1 with -1 → KILLED
9. handle : Substituted 0 with 1 → KILLED
10. handle : Substituted 1 with 0 → KILLED
11. handle : Substituted 0 with -1 → KILLED
            throw new IllegalArgumentException(
77 3 1. handle : replaced call to java/lang/String::format with argument → SURVIVED
2. handle : removed call to java/lang/String::format → SURVIVED
3. handle : removed call to java/lang/IllegalArgumentException::<init> → KILLED
                    String.format("Doesn't exist: %s", file));
78
        }
79
80 1 1. handle : removed call to fi/eis/libraries/di/DeploymentUnitContext$BeanArchiveBuilder::<init> → KILLED
        BeanArchiveBuilder builder = new BeanArchiveBuilder();
81
82
        try {
83
            logger.debug("Handle path: {0}", file.toPath());
84
85 9 1. handle : equal to less or equal → SURVIVED
2. handle : negated conditional → KILLED
3. handle : removed call to java/io/File::isDirectory → KILLED
4. handle : removed conditional - replaced equality check with false → KILLED
5. handle : removed conditional - replaced equality check with true → KILLED
6. handle : equal to less than → KILLED
7. handle : equal to greater than → KILLED
8. handle : equal to greater or equal → KILLED
9. handle : equal to not equal → KILLED
            if (file.isDirectory()) {
86 4 1. handle : removed call to fi/eis/libraries/di/DeploymentUnitContext$DirectoryEntry::<init> → KILLED
2. handle : removed call to fi/eis/libraries/di/DeploymentUnitContext$DirectoryEntry::setFile → KILLED
3. handle : removed call to fi/eis/libraries/di/DeploymentUnitContext::handleDirectory → KILLED
4. handle : replaced call to fi/eis/libraries/di/DeploymentUnitContext$DirectoryEntry::setFile with receiver → KILLED
                handleDirectory(new DirectoryEntry().setFile(file), builder);
87
            } else {
88 1 1. handle : removed call to fi/eis/libraries/di/DeploymentUnitContext::handleFile → KILLED
                handleFile(file, builder);
89
            }
90
        } catch (IOException e) {
91 8 1. handle : removed call to java/lang/StringBuilder::<init> → NO_COVERAGE
2. handle : removed call to java/lang/IllegalStateException::<init> → NO_COVERAGE
3. handle : removed call to java/lang/StringBuilder::append → NO_COVERAGE
4. handle : removed call to java/io/File::toPath → NO_COVERAGE
5. handle : removed call to java/lang/StringBuilder::append → NO_COVERAGE
6. handle : removed call to java/lang/StringBuilder::toString → NO_COVERAGE
7. handle : replaced call to java/lang/StringBuilder::append with receiver → NO_COVERAGE
8. handle : replaced call to java/lang/StringBuilder::append with receiver → NO_COVERAGE
            throw new IllegalStateException("Could not handle path: " + file.toPath(), e);
92
        }
93 2 1. handle : replaced return value with null for fi/eis/libraries/di/DeploymentUnitContext::handle → KILLED
2. handle : mutated return of Object value for fi/eis/libraries/di/DeploymentUnitContext::handle to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return builder;
94
    }
95
96
    protected void handleFile(File file, BeanArchiveBuilder builder) throws IOException {
97
98
        logger.debug("Handle archive file: {0}", file);
99
100
        try {
101 1 1. handleFile : removed call to java/util/zip/ZipFile::<init> → KILLED
            ZipFile zip = new ZipFile(file);
102 1 1. handleFile : removed call to java/util/zip/ZipFile::entries → KILLED
            Enumeration<? extends ZipEntry> entries = zip.entries();
103 12 1. handleFile : removed call to java/net/URL::toExternalForm → SURVIVED
2. handleFile : removed call to java/lang/StringBuilder::toString → SURVIVED
3. handleFile : replaced call to java/lang/StringBuilder::append with receiver → SURVIVED
4. handleFile : replaced call to java/lang/StringBuilder::append with receiver → SURVIVED
5. handleFile : replaced call to java/lang/StringBuilder::append with receiver → SURVIVED
6. handleFile : removed call to java/lang/StringBuilder::<init> → KILLED
7. handleFile : removed call to fi/eis/libraries/di/DeploymentUnitContext$ZipFileEntry::<init> → KILLED
8. handleFile : removed call to java/lang/StringBuilder::append → KILLED
9. handleFile : removed call to java/io/File::toURI → KILLED
10. handleFile : removed call to java/net/URI::toURL → KILLED
11. handleFile : removed call to java/lang/StringBuilder::append → KILLED
12. handleFile : removed call to java/lang/StringBuilder::append → KILLED
            ZipFileEntry entry = new ZipFileEntry(PROCOTOL_JAR + ":" + file.toURI().toURL().toExternalForm() + "!/");
104 9 1. handleFile : equal to less or equal → SURVIVED
2. handleFile : negated conditional → KILLED
3. handleFile : removed call to java/util/Enumeration::hasMoreElements → KILLED
4. handleFile : removed conditional - replaced equality check with false → KILLED
5. handleFile : removed conditional - replaced equality check with true → KILLED
6. handleFile : equal to less than → KILLED
7. handleFile : equal to greater than → KILLED
8. handleFile : equal to greater or equal → KILLED
9. handleFile : equal to not equal → KILLED
            while (entries.hasMoreElements()) {
105 5 1. handleFile : removed call to java/util/Enumeration::nextElement → KILLED
2. handleFile : removed call to java/util/zip/ZipEntry::getName → KILLED
3. handleFile : removed call to fi/eis/libraries/di/DeploymentUnitContext$ZipFileEntry::setName → KILLED
4. handleFile : removed call to fi/eis/libraries/di/DeploymentUnitContext::add → KILLED
5. handleFile : replaced call to fi/eis/libraries/di/DeploymentUnitContext$ZipFileEntry::setName with receiver → KILLED
                add(entry.setName(entries.nextElement().getName()), builder);
106
            }
107 1 1. handleFile : removed call to java/util/zip/ZipFile::close → SURVIVED
            zip.close();
108
        } catch (ZipException e) {
109 1 1. handleFile : removed call to java/lang/IllegalArgumentException::<init> → NO_COVERAGE
            throw new IllegalArgumentException(e);
110
        }
111
    }
112
113
    protected void handleDirectory(DirectoryEntry entry, BeanArchiveBuilder builder) throws IOException {
114
115
        logger.debug("Handle directory: %s", entry.getFile());
116
117 2 1. handleDirectory : removed call to fi/eis/libraries/di/DeploymentUnitContext$DirectoryEntry::getFile → KILLED
2. handleDirectory : removed call to java/io/File::listFiles → KILLED
        File[] files = entry.getFile().listFiles();
118
119 4 1. handleDirectory : removed conditional - replaced equality check with false → SURVIVED
2. handleDirectory : negated conditional → KILLED
3. handleDirectory : removed conditional - replaced equality check with true → KILLED
4. handleDirectory : not equal to equal → KILLED
        if (files == null) {
120 11 1. handleDirectory : Substituted 1 with 0 → NO_COVERAGE
2. handleDirectory : Substituted 0 with 1 → NO_COVERAGE
3. handleDirectory : Substituted 0 with 1 → NO_COVERAGE
4. handleDirectory : Substituted 1 with 0 → NO_COVERAGE
5. handleDirectory : Substituted 1 with -1 → NO_COVERAGE
6. handleDirectory : Substituted 0 with -1 → NO_COVERAGE
7. handleDirectory : Substituted 1 with -1 → NO_COVERAGE
8. handleDirectory : Substituted 1 with 2 → NO_COVERAGE
9. handleDirectory : Substituted 0 with 1 → NO_COVERAGE
10. handleDirectory : Substituted 1 with 0 → NO_COVERAGE
11. handleDirectory : Substituted 0 with -1 → NO_COVERAGE
            throw new IllegalArgumentException(
121 4 1. handleDirectory : replaced call to java/lang/String::format with argument → NO_COVERAGE
2. handleDirectory : removed call to java/lang/IllegalArgumentException::<init> → NO_COVERAGE
3. handleDirectory : removed call to fi/eis/libraries/di/DeploymentUnitContext$DirectoryEntry::getFile → NO_COVERAGE
4. handleDirectory : removed call to java/lang/String::format → NO_COVERAGE
                    String.format("Unable to list directory files: %s", entry.getFile()));
122
        }
123 1 1. handleDirectory : removed call to fi/eis/libraries/di/DeploymentUnitContext$DirectoryEntry::getName → KILLED
        String parentPath = entry.getName();
124
125 15 1. handleDirectory : Decremented (a--) integer local variable number 7 → TIMED_OUT
2. handleDirectory : Negated integer local variable number 7 → KILLED
3. handleDirectory : Negated integer local variable number 6 → KILLED
4. handleDirectory : Negated integer local variable number 7 → KILLED
5. handleDirectory : Incremented (a++) integer local variable number 7 → KILLED
6. handleDirectory : Incremented (a++) integer local variable number 6 → KILLED
7. handleDirectory : Incremented (a++) integer local variable number 7 → KILLED
8. handleDirectory : Decremented (a--) integer local variable number 7 → KILLED
9. handleDirectory : Decremented (a--) integer local variable number 6 → KILLED
10. handleDirectory : Incremented (++a) integer local variable number 7 → KILLED
11. handleDirectory : Incremented (++a) integer local variable number 6 → KILLED
12. handleDirectory : Incremented (++a) integer local variable number 7 → KILLED
13. handleDirectory : Decremented (--a) integer local variable number 7 → KILLED
14. handleDirectory : Decremented (--a) integer local variable number 6 → KILLED
15. handleDirectory : Decremented (--a) integer local variable number 7 → KILLED
        for (File child : files) {
126
127 5 1. handleDirectory : negated conditional → KILLED
2. handleDirectory : removed call to fi/eis/libraries/di/DeploymentUnitContext$DirectoryEntry::getName → KILLED
3. handleDirectory : removed conditional - replaced equality check with false → KILLED
4. handleDirectory : removed conditional - replaced equality check with true → KILLED
5. handleDirectory : equal to not equal → KILLED
            if (entry.getName() != null) {
128 12 1. handleDirectory : removed call to java/lang/StringBuilder::<init> → KILLED
2. handleDirectory : removed call to fi/eis/libraries/di/DeploymentUnitContext$DirectoryEntry::getName → KILLED
3. handleDirectory : removed call to java/lang/StringBuilder::append → KILLED
4. handleDirectory : removed call to java/lang/StringBuilder::append → KILLED
5. handleDirectory : removed call to java/io/File::getName → KILLED
6. handleDirectory : removed call to java/lang/StringBuilder::append → KILLED
7. handleDirectory : removed call to java/lang/StringBuilder::toString → KILLED
8. handleDirectory : removed call to fi/eis/libraries/di/DeploymentUnitContext$DirectoryEntry::setPath → KILLED
9. handleDirectory : replaced call to java/lang/StringBuilder::append with receiver → KILLED
10. handleDirectory : replaced call to java/lang/StringBuilder::append with receiver → KILLED
11. handleDirectory : replaced call to java/lang/StringBuilder::append with receiver → KILLED
12. handleDirectory : replaced call to fi/eis/libraries/di/DeploymentUnitContext$DirectoryEntry::setPath with receiver → KILLED
                entry.setPath(entry.getName() + "/" + child.getName());
129
            } else {
130 3 1. handleDirectory : removed call to java/io/File::getName → KILLED
2. handleDirectory : removed call to fi/eis/libraries/di/DeploymentUnitContext$DirectoryEntry::setPath → KILLED
3. handleDirectory : replaced call to fi/eis/libraries/di/DeploymentUnitContext$DirectoryEntry::setPath with receiver → KILLED
                entry.setPath(child.getName());
131
            }
132 2 1. handleDirectory : removed call to fi/eis/libraries/di/DeploymentUnitContext$DirectoryEntry::setFile → KILLED
2. handleDirectory : replaced call to fi/eis/libraries/di/DeploymentUnitContext$DirectoryEntry::setFile with receiver → KILLED
            entry.setFile(child);
133
134 9 1. handleDirectory : equal to less or equal → SURVIVED
2. handleDirectory : negated conditional → KILLED
3. handleDirectory : removed call to java/io/File::isDirectory → KILLED
4. handleDirectory : removed conditional - replaced equality check with false → KILLED
5. handleDirectory : removed conditional - replaced equality check with true → KILLED
6. handleDirectory : equal to less than → KILLED
7. handleDirectory : equal to greater than → KILLED
8. handleDirectory : equal to greater or equal → KILLED
9. handleDirectory : equal to not equal → KILLED
            if (child.isDirectory()) {
135 1 1. handleDirectory : removed call to fi/eis/libraries/di/DeploymentUnitContext::handleDirectory → KILLED
                handleDirectory(entry, builder);
136
            } else {
137 1 1. handleDirectory : removed call to fi/eis/libraries/di/DeploymentUnitContext::add → KILLED
                add(entry, builder);
138
            }
139 2 1. handleDirectory : removed call to fi/eis/libraries/di/DeploymentUnitContext$DirectoryEntry::setPath → KILLED
2. handleDirectory : replaced call to fi/eis/libraries/di/DeploymentUnitContext$DirectoryEntry::setPath with receiver → KILLED
            entry.setPath(parentPath);
140
        }
141
    }
142
143
    protected void add(Entry entry, BeanArchiveBuilder builder) throws MalformedURLException {
144 10 1. add : equal to less or equal → SURVIVED
2. add : negated conditional → KILLED
3. add : removed call to fi/eis/libraries/di/DeploymentUnitContext$Entry::getName → KILLED
4. add : removed call to fi/eis/libraries/di/DeploymentUnitContext::isClass → KILLED
5. add : removed conditional - replaced equality check with false → KILLED
6. add : removed conditional - replaced equality check with true → KILLED
7. add : equal to less than → KILLED
8. add : equal to greater than → KILLED
9. add : equal to greater or equal → KILLED
10. add : equal to not equal → KILLED
        if (isClass(entry.getName())) {
145 4 1. add : replaced call to fi/eis/libraries/di/DeploymentUnitContext::filenameToClassname with argument → KILLED
2. add : removed call to fi/eis/libraries/di/DeploymentUnitContext$Entry::getName → KILLED
3. add : removed call to fi/eis/libraries/di/DeploymentUnitContext::filenameToClassname → KILLED
4. add : removed call to fi/eis/libraries/di/DeploymentUnitContext$BeanArchiveBuilder::addClass → KILLED
            builder.addClass(filenameToClassname(entry.getName()));
146
        }
147
    }
148
149
    protected boolean isClass(String name) {
150 4 1. isClass : replaced boolean return with false for fi/eis/libraries/di/DeploymentUnitContext::isClass → KILLED
2. isClass : replaced boolean return with true for fi/eis/libraries/di/DeploymentUnitContext::isClass → KILLED
3. isClass : removed call to java/lang/String::endsWith → KILLED
4. isClass : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return name.endsWith(CLASS_FILE_EXTENSION);
151
    }
152
153
    private String filenameToClassname(String filename) {
154 24 1. filenameToClassname : replaced return value with "" for fi/eis/libraries/di/DeploymentUnitContext::filenameToClassname → KILLED
2. filenameToClassname : Substituted 0 with 1 → KILLED
3. filenameToClassname : Substituted 47 with 48 → KILLED
4. filenameToClassname : Substituted 46 with 47 → KILLED
5. filenameToClassname : removed call to java/lang/String::lastIndexOf → KILLED
6. filenameToClassname : removed call to java/lang/String::substring → KILLED
7. filenameToClassname : mutated return of Object value for fi/eis/libraries/di/DeploymentUnitContext::filenameToClassname to ( if (x != null) null else throw new RuntimeException ) → KILLED
8. filenameToClassname : replaced call to java/lang/String::substring with receiver → KILLED
9. filenameToClassname : Substituted 0 with 1 → KILLED
10. filenameToClassname : Substituted 47 with 1 → KILLED
11. filenameToClassname : Substituted 46 with 1 → KILLED
12. filenameToClassname : Substituted 47 with 0 → KILLED
13. filenameToClassname : Substituted 46 with 0 → KILLED
14. filenameToClassname : Substituted 0 with -1 → KILLED
15. filenameToClassname : Substituted 47 with -1 → KILLED
16. filenameToClassname : Substituted 46 with -1 → KILLED
17. filenameToClassname : Substituted 47 with -47 → KILLED
18. filenameToClassname : Substituted 46 with -46 → KILLED
19. filenameToClassname : Substituted 0 with 1 → KILLED
20. filenameToClassname : Substituted 47 with 48 → KILLED
21. filenameToClassname : Substituted 46 with 47 → KILLED
22. filenameToClassname : Substituted 0 with -1 → KILLED
23. filenameToClassname : Substituted 47 with 46 → KILLED
24. filenameToClassname : Substituted 46 with 45 → KILLED
        return filename.substring(0, filename.lastIndexOf(CLASS_FILE_EXTENSION))
155 18 1. filenameToClassname : Substituted 92 with 93 → SURVIVED
2. filenameToClassname : Substituted 46 with 47 → SURVIVED
3. filenameToClassname : replaced call to java/lang/String::replace with receiver → SURVIVED
4. filenameToClassname : Substituted 92 with 1 → SURVIVED
5. filenameToClassname : Substituted 46 with 1 → SURVIVED
6. filenameToClassname : Substituted 92 with 0 → SURVIVED
7. filenameToClassname : Substituted 46 with 0 → SURVIVED
8. filenameToClassname : Substituted 92 with -1 → SURVIVED
9. filenameToClassname : Substituted 46 with -1 → SURVIVED
10. filenameToClassname : Substituted 92 with -92 → SURVIVED
11. filenameToClassname : Substituted 46 with -46 → SURVIVED
12. filenameToClassname : Substituted 92 with 93 → SURVIVED
13. filenameToClassname : Substituted 46 with 47 → SURVIVED
14. filenameToClassname : Substituted 92 with 91 → SURVIVED
15. filenameToClassname : Substituted 46 with 45 → SURVIVED
16. filenameToClassname : removed call to java/lang/String::replace → KILLED
17. filenameToClassname : removed call to java/lang/String::replace → KILLED
18. filenameToClassname : replaced call to java/lang/String::replace with receiver → KILLED
                .replace('/', '.').replace('\\', '.');
156
    }
157
158
    /**
159
     * An abstraction of a bean archive entry.
160
     */
161
    protected interface Entry {
162
163
        String getName();
164
165
        /**
166
         * @return the URL, most probably lazily created
167
         * @throws MalformedURLException missing protocol or URL parsing error
168
         */
169
        URL getUrl() throws MalformedURLException;
170
171
    }
172
173
    static class BeanArchiveBuilder {
174 2 1. <init> : removed call to java/util/ArrayList::<init> → KILLED
2. <init> : Removed assignment to member variable classes → KILLED
        private final List<Class> classes = new ArrayList<>();
175
176
        public void addClass(String className) {
177
            try {
178 1 1. addClass : removed call to java/lang/Class::forName → KILLED
                Class targetClass = Class.forName(className);
179
                // we want instantiable classes, so don't add interfaces or
180
                // abstract classes
181 19 1. addClass : removed call to java/lang/Class::isInterface → SURVIVED
2. addClass : removed call to java/lang/Class::getModifiers → SURVIVED
3. addClass : removed call to java/lang/reflect/Modifier::isAbstract → SURVIVED
4. addClass : removed conditional - replaced equality check with false → SURVIVED
5. addClass : removed conditional - replaced equality check with true → SURVIVED
6. addClass : not equal to less than → SURVIVED
7. addClass : equal to less or equal → SURVIVED
8. addClass : not equal to greater than → SURVIVED
9. addClass : equal to greater or equal → SURVIVED
10. addClass : negated conditional → KILLED
11. addClass : negated conditional → KILLED
12. addClass : removed conditional - replaced equality check with false → KILLED
13. addClass : removed conditional - replaced equality check with true → KILLED
14. addClass : equal to less than → KILLED
15. addClass : not equal to less or equal → KILLED
16. addClass : equal to greater than → KILLED
17. addClass : not equal to greater or equal → KILLED
18. addClass : not equal to equal → KILLED
19. addClass : equal to not equal → KILLED
                if (targetClass.isInterface() || Modifier.isAbstract(targetClass.getModifiers())) {
182
                    return;
183
                }
184 1 1. addClass : removed call to java/util/List::add → KILLED
                classes.add(targetClass);
185
            } catch (ClassNotFoundException | NoClassDefFoundError e) {
186 7 1. addClass : removed call to java/lang/StringBuilder::<init> → NO_COVERAGE
2. addClass : removed call to java/lang/StringBuilder::append → NO_COVERAGE
3. addClass : removed call to java/lang/StringBuilder::append → NO_COVERAGE
4. addClass : removed call to java/lang/StringBuilder::toString → NO_COVERAGE
5. addClass : removed call to java/io/PrintStream::println → NO_COVERAGE
6. addClass : replaced call to java/lang/StringBuilder::append with receiver → NO_COVERAGE
7. addClass : replaced call to java/lang/StringBuilder::append with receiver → NO_COVERAGE
                System.out.println("Not found: " + className);
187
            }
188
        }
189
190
        public List<Class> getClasses() {
191 2 1. getClasses : replaced return value with Collections.emptyList for fi/eis/libraries/di/DeploymentUnitContext$BeanArchiveBuilder::getClasses → KILLED
2. getClasses : mutated return of Object value for fi/eis/libraries/di/DeploymentUnitContext$BeanArchiveBuilder::getClasses to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return this.classes;
192
        }
193
    }
194
195
    private static class ZipFileEntry implements Entry {
196
197
        private String name;
198
        private String archiveUrl;
199
200
        ZipFileEntry(String archiveUrl) {
201 1 1. <init> : Removed assignment to member variable archiveUrl → SURVIVED
            this.archiveUrl = archiveUrl;
202
        }
203
204
        @Override
205
        public String getName() {
206 2 1. getName : replaced return value with "" for fi/eis/libraries/di/DeploymentUnitContext$ZipFileEntry::getName → KILLED
2. getName : mutated return of Object value for fi/eis/libraries/di/DeploymentUnitContext$ZipFileEntry::getName to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return name;
207
        }
208
209
        ZipFileEntry setName(String name) {
210 1 1. setName : Removed assignment to member variable name → KILLED
            this.name = name;
211 2 1. setName : replaced return value with null for fi/eis/libraries/di/DeploymentUnitContext$ZipFileEntry::setName → KILLED
2. setName : mutated return of Object value for fi/eis/libraries/di/DeploymentUnitContext$ZipFileEntry::setName to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return this;
212
        }
213
214
        @Override
215
        public URL getUrl() throws MalformedURLException {
216 9 1. getUrl : removed call to java/lang/StringBuilder::<init> → NO_COVERAGE
2. getUrl : removed call to java/net/URL::<init> → NO_COVERAGE
3. getUrl : removed call to java/lang/StringBuilder::append → NO_COVERAGE
4. getUrl : removed call to java/lang/StringBuilder::append → NO_COVERAGE
5. getUrl : removed call to java/lang/StringBuilder::toString → NO_COVERAGE
6. getUrl : replaced return value with null for fi/eis/libraries/di/DeploymentUnitContext$ZipFileEntry::getUrl → NO_COVERAGE
7. getUrl : mutated return of Object value for fi/eis/libraries/di/DeploymentUnitContext$ZipFileEntry::getUrl to ( if (x != null) null else throw new RuntimeException ) → NO_COVERAGE
8. getUrl : replaced call to java/lang/StringBuilder::append with receiver → NO_COVERAGE
9. getUrl : replaced call to java/lang/StringBuilder::append with receiver → NO_COVERAGE
            return new URL(archiveUrl + name);
217
        }
218
219
    }
220
221
    private static class DirectoryEntry implements Entry {
222
223
        private String path;
224
        private File file;
225
226
        @Override
227
        public String getName() {
228 2 1. getName : replaced return value with "" for fi/eis/libraries/di/DeploymentUnitContext$DirectoryEntry::getName → KILLED
2. getName : mutated return of Object value for fi/eis/libraries/di/DeploymentUnitContext$DirectoryEntry::getName to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return path;
229
        }
230
231
        @Override
232
        public URL getUrl() throws MalformedURLException {
233 4 1. getUrl : removed call to java/io/File::toURI → NO_COVERAGE
2. getUrl : removed call to java/net/URI::toURL → NO_COVERAGE
3. getUrl : replaced return value with null for fi/eis/libraries/di/DeploymentUnitContext$DirectoryEntry::getUrl → NO_COVERAGE
4. getUrl : mutated return of Object value for fi/eis/libraries/di/DeploymentUnitContext$DirectoryEntry::getUrl to ( if (x != null) null else throw new RuntimeException ) → NO_COVERAGE
            return file.toURI().toURL();
234
        }
235
236
        public DirectoryEntry setPath(String path) {
237 1 1. setPath : Removed assignment to member variable path → KILLED
            this.path = path;
238 2 1. setPath : replaced return value with null for fi/eis/libraries/di/DeploymentUnitContext$DirectoryEntry::setPath → SURVIVED
2. setPath : mutated return of Object value for fi/eis/libraries/di/DeploymentUnitContext$DirectoryEntry::setPath to ( if (x != null) null else throw new RuntimeException ) → SURVIVED
            return this;
239
        }
240
241
        public File getFile() {
242 2 1. getFile : replaced return value with null for fi/eis/libraries/di/DeploymentUnitContext$DirectoryEntry::getFile → KILLED
2. getFile : mutated return of Object value for fi/eis/libraries/di/DeploymentUnitContext$DirectoryEntry::getFile to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return file;
243
        }
244
245
        public DirectoryEntry setFile(File dir) {
246 1 1. setFile : Removed assignment to member variable file → KILLED
            this.file = dir;
247 2 1. setFile : replaced return value with null for fi/eis/libraries/di/DeploymentUnitContext$DirectoryEntry::setFile → KILLED
2. setFile : mutated return of Object value for fi/eis/libraries/di/DeploymentUnitContext$DirectoryEntry::setFile to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return this;
248
        }
249
250
    }
251
252
}

Mutations

37

1.1
Location : <init>
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDi(fi.eis.libraries.di.DIClassScanningTest)
Substituted 0 with 1 → KILLED

2.2
Location : <init>
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDi(fi.eis.libraries.di.DIClassScanningTest)
Substituted 0 with 1 → KILLED

3.3
Location : <init>
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDi(fi.eis.libraries.di.DIClassScanningTest)
Substituted 0 with -1 → KILLED

4.4
Location : <init>
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDi(fi.eis.libraries.di.DIClassScanningTest)
Substituted 0 with 1 → KILLED

5.5
Location : <init>
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDi(fi.eis.libraries.di.DIClassScanningTest)
Substituted 0 with -1 → KILLED

39

1.1
Location : <init>
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDi(fi.eis.libraries.di.DIClassScanningTest)
removed call to fi/eis/libraries/di/DeploymentUnitContext::initUsing → KILLED

43

1.1
Location : <init>
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
Substituted 0 with 1 → KILLED

2.2
Location : <init>
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
Substituted 0 with 1 → KILLED

3.3
Location : <init>
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
Substituted 0 with -1 → KILLED

4.4
Location : <init>
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
Substituted 0 with 1 → KILLED

5.5
Location : <init>
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
Substituted 0 with -1 → KILLED

44

1.1
Location : <init>
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingEnabled(fi.eis.libraries.di.DIClassScanningTest)
removed call to fi/eis/libraries/di/DeploymentUnitContext::setLogLevel → KILLED

45

1.1
Location : <init>
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed call to fi/eis/libraries/di/DeploymentUnitContext::initUsing → KILLED

49

1.1
Location : <init>
Killed by : fi.eis.libraries.di.DIClassScanningJarLoadingTest.testDi(fi.eis.libraries.di.DIClassScanningJarLoadingTest)
Substituted 0 with 1 → KILLED

2.2
Location : <init>
Killed by : fi.eis.libraries.di.DIClassScanningJarLoadingTest.testDi(fi.eis.libraries.di.DIClassScanningJarLoadingTest)
Substituted 0 with 1 → KILLED

3.3
Location : <init>
Killed by : fi.eis.libraries.di.DIClassScanningJarLoadingTest.testDiWithNonExistingFile(fi.eis.libraries.di.DIClassScanningJarLoadingTest)
Substituted 0 with -1 → KILLED

4.4
Location : <init>
Killed by : fi.eis.libraries.di.DIClassScanningJarLoadingTest.testDi(fi.eis.libraries.di.DIClassScanningJarLoadingTest)
Substituted 0 with 1 → KILLED

5.5
Location : <init>
Killed by : fi.eis.libraries.di.DIClassScanningJarLoadingTest.testDiWithNonExistingFile(fi.eis.libraries.di.DIClassScanningJarLoadingTest)
Substituted 0 with -1 → KILLED

50

1.1
Location : <init>
Killed by : fi.eis.libraries.di.DIClassScanningJarLoadingTest.testDiWithNonExistingFile(fi.eis.libraries.di.DIClassScanningJarLoadingTest)
removed call to fi/eis/libraries/di/DeploymentUnitContext::handle → KILLED

2.2
Location : <init>
Killed by : fi.eis.libraries.di.DIClassScanningJarLoadingTest.testDi(fi.eis.libraries.di.DIClassScanningJarLoadingTest)
removed call to fi/eis/libraries/di/DeploymentUnitContext::initFrom → KILLED

54

1.1
Location : <init>
Killed by : none
Substituted 0 with 1 → NO_COVERAGE

2.2
Location : <init>
Killed by : none
Substituted 0 with 1 → NO_COVERAGE

3.3
Location : <init>
Killed by : none
Substituted 0 with -1 → NO_COVERAGE

4.4
Location : <init>
Killed by : none
Substituted 0 with 1 → NO_COVERAGE

5.5
Location : <init>
Killed by : none
Substituted 0 with -1 → NO_COVERAGE

55

1.1
Location : <init>
Killed by : none
removed call to fi/eis/libraries/di/DeploymentUnitContext::setLogLevel → NO_COVERAGE

56

1.1
Location : <init>
Killed by : none
removed call to fi/eis/libraries/di/DeploymentUnitContext::handle → NO_COVERAGE

2.2
Location : <init>
Killed by : none
removed call to fi/eis/libraries/di/DeploymentUnitContext::initFrom → NO_COVERAGE

60

1.1
Location : initUsing
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed call to java/lang/Class::getProtectionDomain → KILLED

2.2
Location : initUsing
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed call to java/security/ProtectionDomain::getCodeSource → KILLED

3.3
Location : initUsing
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed call to java/security/CodeSource::getLocation → KILLED

4.4
Location : initUsing
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed call to fi/eis/libraries/di/DeploymentUnitContext::handle → KILLED

5.5
Location : initUsing
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed call to fi/eis/libraries/di/DeploymentUnitContext::initFrom → KILLED

64

1.1
Location : initFrom
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed call to fi/eis/libraries/di/DeploymentUnitContext$BeanArchiveBuilder::getClasses → KILLED

66

1.1
Location : initFrom
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed call to fi/eis/libraries/di/DependencyInjection::classes → KILLED

2.2
Location : initFrom
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed call to java/util/List::add → KILLED

70

1.1
Location : handle
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed call to java/io/File::<init> → KILLED

2.2
Location : handle
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed call to java/net/URL::getPath → KILLED

3.3
Location : handle
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed call to fi/eis/libraries/di/DeploymentUnitContext::handle → KILLED

4.4
Location : handle
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
replaced return value with null for fi/eis/libraries/di/DeploymentUnitContext::handle → KILLED

5.5
Location : handle
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
mutated return of Object value for fi/eis/libraries/di/DeploymentUnitContext::handle to ( if (x != null) null else throw new RuntimeException ) → KILLED

75

1.1
Location : handle
Killed by : fi.eis.libraries.di.DIClassScanningJarLoadingTest.testDiWithNonExistingFile(fi.eis.libraries.di.DIClassScanningJarLoadingTest)
negated conditional → KILLED

2.2
Location : handle
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed call to java/io/File::exists → KILLED

3.3
Location : handle
Killed by : fi.eis.libraries.di.DIClassScanningJarLoadingTest.testDiWithNonExistingFile(fi.eis.libraries.di.DIClassScanningJarLoadingTest)
removed conditional - replaced equality check with false → KILLED

4.4
Location : handle
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed conditional - replaced equality check with true → KILLED

5.5
Location : handle
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
not equal to less than → KILLED

6.6
Location : handle
Killed by : fi.eis.libraries.di.DIClassScanningJarLoadingTest.testDiWithNonExistingFile(fi.eis.libraries.di.DIClassScanningJarLoadingTest)
not equal to less or equal → KILLED

7.7
Location : handle
Killed by : none
not equal to greater than → SURVIVED

8.8
Location : handle
Killed by : fi.eis.libraries.di.DIClassScanningJarLoadingTest.testDiWithNonExistingFile(fi.eis.libraries.di.DIClassScanningJarLoadingTest)
not equal to greater or equal → KILLED

9.9
Location : handle
Killed by : fi.eis.libraries.di.DIClassScanningJarLoadingTest.testDiWithNonExistingFile(fi.eis.libraries.di.DIClassScanningJarLoadingTest)
not equal to equal → KILLED

76

1.1
Location : handle
Killed by : fi.eis.libraries.di.DIClassScanningJarLoadingTest.testDiWithNonExistingFile(fi.eis.libraries.di.DIClassScanningJarLoadingTest)
Substituted 1 with 0 → KILLED

2.2
Location : handle
Killed by : fi.eis.libraries.di.DIClassScanningJarLoadingTest.testDiWithNonExistingFile(fi.eis.libraries.di.DIClassScanningJarLoadingTest)
Substituted 0 with 1 → KILLED

3.3
Location : handle
Killed by : fi.eis.libraries.di.DIClassScanningJarLoadingTest.testDiWithNonExistingFile(fi.eis.libraries.di.DIClassScanningJarLoadingTest)
Substituted 0 with 1 → KILLED

4.4
Location : handle
Killed by : fi.eis.libraries.di.DIClassScanningJarLoadingTest.testDiWithNonExistingFile(fi.eis.libraries.di.DIClassScanningJarLoadingTest)
Substituted 1 with 0 → KILLED

5.5
Location : handle
Killed by : fi.eis.libraries.di.DIClassScanningJarLoadingTest.testDiWithNonExistingFile(fi.eis.libraries.di.DIClassScanningJarLoadingTest)
Substituted 1 with -1 → KILLED

6.6
Location : handle
Killed by : fi.eis.libraries.di.DIClassScanningJarLoadingTest.testDiWithNonExistingFile(fi.eis.libraries.di.DIClassScanningJarLoadingTest)
Substituted 0 with -1 → KILLED

7.7
Location : handle
Killed by : fi.eis.libraries.di.DIClassScanningJarLoadingTest.testDiWithNonExistingFile(fi.eis.libraries.di.DIClassScanningJarLoadingTest)
Substituted 1 with -1 → KILLED

8.8
Location : handle
Killed by : none
Substituted 1 with 2 → SURVIVED

9.9
Location : handle
Killed by : fi.eis.libraries.di.DIClassScanningJarLoadingTest.testDiWithNonExistingFile(fi.eis.libraries.di.DIClassScanningJarLoadingTest)
Substituted 0 with 1 → KILLED

10.10
Location : handle
Killed by : fi.eis.libraries.di.DIClassScanningJarLoadingTest.testDiWithNonExistingFile(fi.eis.libraries.di.DIClassScanningJarLoadingTest)
Substituted 1 with 0 → KILLED

11.11
Location : handle
Killed by : fi.eis.libraries.di.DIClassScanningJarLoadingTest.testDiWithNonExistingFile(fi.eis.libraries.di.DIClassScanningJarLoadingTest)
Substituted 0 with -1 → KILLED

77

1.1
Location : handle
Killed by : none
replaced call to java/lang/String::format with argument → SURVIVED

2.2
Location : handle
Killed by : fi.eis.libraries.di.DIClassScanningJarLoadingTest.testDiWithNonExistingFile(fi.eis.libraries.di.DIClassScanningJarLoadingTest)
removed call to java/lang/IllegalArgumentException::<init> → KILLED

3.3
Location : handle
Killed by : none
removed call to java/lang/String::format → SURVIVED

80

1.1
Location : handle
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed call to fi/eis/libraries/di/DeploymentUnitContext$BeanArchiveBuilder::<init> → KILLED

85

1.1
Location : handle
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
negated conditional → KILLED

2.2
Location : handle
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed call to java/io/File::isDirectory → KILLED

3.3
Location : handle
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed conditional - replaced equality check with false → KILLED

4.4
Location : handle
Killed by : fi.eis.libraries.di.DIClassScanningJarLoadingTest.testDi(fi.eis.libraries.di.DIClassScanningJarLoadingTest)
removed conditional - replaced equality check with true → KILLED

5.5
Location : handle
Killed by : fi.eis.libraries.di.DIClassScanningJarLoadingTest.testDi(fi.eis.libraries.di.DIClassScanningJarLoadingTest)
equal to less than → KILLED

6.6
Location : handle
Killed by : none
equal to less or equal → SURVIVED

7.7
Location : handle
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
equal to greater than → KILLED

8.8
Location : handle
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
equal to greater or equal → KILLED

9.9
Location : handle
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
equal to not equal → KILLED

86

1.1
Location : handle
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed call to fi/eis/libraries/di/DeploymentUnitContext$DirectoryEntry::<init> → KILLED

2.2
Location : handle
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed call to fi/eis/libraries/di/DeploymentUnitContext$DirectoryEntry::setFile → KILLED

3.3
Location : handle
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed call to fi/eis/libraries/di/DeploymentUnitContext::handleDirectory → KILLED

4.4
Location : handle
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
replaced call to fi/eis/libraries/di/DeploymentUnitContext$DirectoryEntry::setFile with receiver → KILLED

88

1.1
Location : handle
Killed by : fi.eis.libraries.di.DIClassScanningJarLoadingTest.testDi(fi.eis.libraries.di.DIClassScanningJarLoadingTest)
removed call to fi/eis/libraries/di/DeploymentUnitContext::handleFile → KILLED

91

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

2.2
Location : handle
Killed by : none
removed call to java/lang/IllegalStateException::<init> → NO_COVERAGE

3.3
Location : handle
Killed by : none
removed call to java/lang/StringBuilder::append → NO_COVERAGE

4.4
Location : handle
Killed by : none
removed call to java/io/File::toPath → NO_COVERAGE

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

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

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

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

93

1.1
Location : handle
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
replaced return value with null for fi/eis/libraries/di/DeploymentUnitContext::handle → KILLED

2.2
Location : handle
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
mutated return of Object value for fi/eis/libraries/di/DeploymentUnitContext::handle to ( if (x != null) null else throw new RuntimeException ) → KILLED

101

1.1
Location : handleFile
Killed by : fi.eis.libraries.di.DIClassScanningJarLoadingTest.testDi(fi.eis.libraries.di.DIClassScanningJarLoadingTest)
removed call to java/util/zip/ZipFile::<init> → KILLED

102

1.1
Location : handleFile
Killed by : fi.eis.libraries.di.DIClassScanningJarLoadingTest.testDi(fi.eis.libraries.di.DIClassScanningJarLoadingTest)
removed call to java/util/zip/ZipFile::entries → KILLED

103

1.1
Location : handleFile
Killed by : fi.eis.libraries.di.DIClassScanningJarLoadingTest.testDi(fi.eis.libraries.di.DIClassScanningJarLoadingTest)
removed call to java/lang/StringBuilder::<init> → KILLED

2.2
Location : handleFile
Killed by : fi.eis.libraries.di.DIClassScanningJarLoadingTest.testDi(fi.eis.libraries.di.DIClassScanningJarLoadingTest)
removed call to fi/eis/libraries/di/DeploymentUnitContext$ZipFileEntry::<init> → KILLED

3.3
Location : handleFile
Killed by : fi.eis.libraries.di.DIClassScanningJarLoadingTest.testDi(fi.eis.libraries.di.DIClassScanningJarLoadingTest)
removed call to java/lang/StringBuilder::append → KILLED

4.4
Location : handleFile
Killed by : fi.eis.libraries.di.DIClassScanningJarLoadingTest.testDi(fi.eis.libraries.di.DIClassScanningJarLoadingTest)
removed call to java/io/File::toURI → KILLED

5.5
Location : handleFile
Killed by : fi.eis.libraries.di.DIClassScanningJarLoadingTest.testDi(fi.eis.libraries.di.DIClassScanningJarLoadingTest)
removed call to java/net/URI::toURL → KILLED

6.6
Location : handleFile
Killed by : none
removed call to java/net/URL::toExternalForm → SURVIVED

7.7
Location : handleFile
Killed by : fi.eis.libraries.di.DIClassScanningJarLoadingTest.testDi(fi.eis.libraries.di.DIClassScanningJarLoadingTest)
removed call to java/lang/StringBuilder::append → KILLED

8.8
Location : handleFile
Killed by : fi.eis.libraries.di.DIClassScanningJarLoadingTest.testDi(fi.eis.libraries.di.DIClassScanningJarLoadingTest)
removed call to java/lang/StringBuilder::append → KILLED

9.9
Location : handleFile
Killed by : none
removed call to java/lang/StringBuilder::toString → SURVIVED

10.10
Location : handleFile
Killed by : none
replaced call to java/lang/StringBuilder::append with receiver → SURVIVED

11.11
Location : handleFile
Killed by : none
replaced call to java/lang/StringBuilder::append with receiver → SURVIVED

12.12
Location : handleFile
Killed by : none
replaced call to java/lang/StringBuilder::append with receiver → SURVIVED

104

1.1
Location : handleFile
Killed by : fi.eis.libraries.di.DIClassScanningJarLoadingTest.testDi(fi.eis.libraries.di.DIClassScanningJarLoadingTest)
negated conditional → KILLED

2.2
Location : handleFile
Killed by : fi.eis.libraries.di.DIClassScanningJarLoadingTest.testDi(fi.eis.libraries.di.DIClassScanningJarLoadingTest)
removed call to java/util/Enumeration::hasMoreElements → KILLED

3.3
Location : handleFile
Killed by : fi.eis.libraries.di.DIClassScanningJarLoadingTest.testDi(fi.eis.libraries.di.DIClassScanningJarLoadingTest)
removed conditional - replaced equality check with false → KILLED

4.4
Location : handleFile
Killed by : fi.eis.libraries.di.DIClassScanningJarLoadingTest.testDi(fi.eis.libraries.di.DIClassScanningJarLoadingTest)
removed conditional - replaced equality check with true → KILLED

5.5
Location : handleFile
Killed by : fi.eis.libraries.di.DIClassScanningJarLoadingTest.testDi(fi.eis.libraries.di.DIClassScanningJarLoadingTest)
equal to less than → KILLED

6.6
Location : handleFile
Killed by : none
equal to less or equal → SURVIVED

7.7
Location : handleFile
Killed by : fi.eis.libraries.di.DIClassScanningJarLoadingTest.testDi(fi.eis.libraries.di.DIClassScanningJarLoadingTest)
equal to greater than → KILLED

8.8
Location : handleFile
Killed by : fi.eis.libraries.di.DIClassScanningJarLoadingTest.testDi(fi.eis.libraries.di.DIClassScanningJarLoadingTest)
equal to greater or equal → KILLED

9.9
Location : handleFile
Killed by : fi.eis.libraries.di.DIClassScanningJarLoadingTest.testDi(fi.eis.libraries.di.DIClassScanningJarLoadingTest)
equal to not equal → KILLED

105

1.1
Location : handleFile
Killed by : fi.eis.libraries.di.DIClassScanningJarLoadingTest.testDi(fi.eis.libraries.di.DIClassScanningJarLoadingTest)
removed call to java/util/Enumeration::nextElement → KILLED

2.2
Location : handleFile
Killed by : fi.eis.libraries.di.DIClassScanningJarLoadingTest.testDi(fi.eis.libraries.di.DIClassScanningJarLoadingTest)
removed call to java/util/zip/ZipEntry::getName → KILLED

3.3
Location : handleFile
Killed by : fi.eis.libraries.di.DIClassScanningJarLoadingTest.testDi(fi.eis.libraries.di.DIClassScanningJarLoadingTest)
removed call to fi/eis/libraries/di/DeploymentUnitContext$ZipFileEntry::setName → KILLED

4.4
Location : handleFile
Killed by : fi.eis.libraries.di.DIClassScanningJarLoadingTest.testDi(fi.eis.libraries.di.DIClassScanningJarLoadingTest)
removed call to fi/eis/libraries/di/DeploymentUnitContext::add → KILLED

5.5
Location : handleFile
Killed by : fi.eis.libraries.di.DIClassScanningJarLoadingTest.testDi(fi.eis.libraries.di.DIClassScanningJarLoadingTest)
replaced call to fi/eis/libraries/di/DeploymentUnitContext$ZipFileEntry::setName with receiver → KILLED

107

1.1
Location : handleFile
Killed by : none
removed call to java/util/zip/ZipFile::close → SURVIVED

109

1.1
Location : handleFile
Killed by : none
removed call to java/lang/IllegalArgumentException::<init> → NO_COVERAGE

117

1.1
Location : handleDirectory
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed call to fi/eis/libraries/di/DeploymentUnitContext$DirectoryEntry::getFile → KILLED

2.2
Location : handleDirectory
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed call to java/io/File::listFiles → KILLED

119

1.1
Location : handleDirectory
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
negated conditional → KILLED

2.2
Location : handleDirectory
Killed by : none
removed conditional - replaced equality check with false → SURVIVED

3.3
Location : handleDirectory
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed conditional - replaced equality check with true → KILLED

4.4
Location : handleDirectory
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
not equal to equal → KILLED

120

1.1
Location : handleDirectory
Killed by : none
Substituted 1 with 0 → NO_COVERAGE

2.2
Location : handleDirectory
Killed by : none
Substituted 0 with 1 → NO_COVERAGE

3.3
Location : handleDirectory
Killed by : none
Substituted 0 with 1 → NO_COVERAGE

4.4
Location : handleDirectory
Killed by : none
Substituted 1 with 0 → NO_COVERAGE

5.5
Location : handleDirectory
Killed by : none
Substituted 1 with -1 → NO_COVERAGE

6.6
Location : handleDirectory
Killed by : none
Substituted 0 with -1 → NO_COVERAGE

7.7
Location : handleDirectory
Killed by : none
Substituted 1 with -1 → NO_COVERAGE

8.8
Location : handleDirectory
Killed by : none
Substituted 1 with 2 → NO_COVERAGE

9.9
Location : handleDirectory
Killed by : none
Substituted 0 with 1 → NO_COVERAGE

10.10
Location : handleDirectory
Killed by : none
Substituted 1 with 0 → NO_COVERAGE

11.11
Location : handleDirectory
Killed by : none
Substituted 0 with -1 → NO_COVERAGE

121

1.1
Location : handleDirectory
Killed by : none
replaced call to java/lang/String::format with argument → NO_COVERAGE

2.2
Location : handleDirectory
Killed by : none
removed call to java/lang/IllegalArgumentException::<init> → NO_COVERAGE

3.3
Location : handleDirectory
Killed by : none
removed call to fi/eis/libraries/di/DeploymentUnitContext$DirectoryEntry::getFile → NO_COVERAGE

4.4
Location : handleDirectory
Killed by : none
removed call to java/lang/String::format → NO_COVERAGE

123

1.1
Location : handleDirectory
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed call to fi/eis/libraries/di/DeploymentUnitContext$DirectoryEntry::getName → KILLED

125

1.1
Location : handleDirectory
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
Negated integer local variable number 7 → KILLED

2.2
Location : handleDirectory
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
Negated integer local variable number 6 → KILLED

3.3
Location : handleDirectory
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
Negated integer local variable number 7 → KILLED

4.4
Location : handleDirectory
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
Incremented (a++) integer local variable number 7 → KILLED

5.5
Location : handleDirectory
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
Incremented (a++) integer local variable number 6 → KILLED

6.6
Location : handleDirectory
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
Incremented (a++) integer local variable number 7 → KILLED

7.7
Location : handleDirectory
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
Decremented (a--) integer local variable number 7 → KILLED

8.8
Location : handleDirectory
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
Decremented (a--) integer local variable number 6 → KILLED

9.9
Location : handleDirectory
Killed by : none
Decremented (a--) integer local variable number 7 → TIMED_OUT

10.10
Location : handleDirectory
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
Incremented (++a) integer local variable number 7 → KILLED

11.11
Location : handleDirectory
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
Incremented (++a) integer local variable number 6 → KILLED

12.12
Location : handleDirectory
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
Incremented (++a) integer local variable number 7 → KILLED

13.13
Location : handleDirectory
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
Decremented (--a) integer local variable number 7 → KILLED

14.14
Location : handleDirectory
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
Decremented (--a) integer local variable number 6 → KILLED

15.15
Location : handleDirectory
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
Decremented (--a) integer local variable number 7 → KILLED

127

1.1
Location : handleDirectory
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
negated conditional → KILLED

2.2
Location : handleDirectory
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed call to fi/eis/libraries/di/DeploymentUnitContext$DirectoryEntry::getName → KILLED

3.3
Location : handleDirectory
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed conditional - replaced equality check with false → KILLED

4.4
Location : handleDirectory
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed conditional - replaced equality check with true → KILLED

5.5
Location : handleDirectory
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
equal to not equal → KILLED

128

1.1
Location : handleDirectory
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed call to java/lang/StringBuilder::<init> → KILLED

2.2
Location : handleDirectory
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed call to fi/eis/libraries/di/DeploymentUnitContext$DirectoryEntry::getName → KILLED

3.3
Location : handleDirectory
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed call to java/lang/StringBuilder::append → KILLED

4.4
Location : handleDirectory
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed call to java/lang/StringBuilder::append → KILLED

5.5
Location : handleDirectory
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed call to java/io/File::getName → KILLED

6.6
Location : handleDirectory
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed call to java/lang/StringBuilder::append → KILLED

7.7
Location : handleDirectory
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed call to java/lang/StringBuilder::toString → KILLED

8.8
Location : handleDirectory
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed call to fi/eis/libraries/di/DeploymentUnitContext$DirectoryEntry::setPath → KILLED

9.9
Location : handleDirectory
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
replaced call to java/lang/StringBuilder::append with receiver → KILLED

10.10
Location : handleDirectory
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
replaced call to java/lang/StringBuilder::append with receiver → KILLED

11.11
Location : handleDirectory
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
replaced call to java/lang/StringBuilder::append with receiver → KILLED

12.12
Location : handleDirectory
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
replaced call to fi/eis/libraries/di/DeploymentUnitContext$DirectoryEntry::setPath with receiver → KILLED

130

1.1
Location : handleDirectory
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed call to java/io/File::getName → KILLED

2.2
Location : handleDirectory
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed call to fi/eis/libraries/di/DeploymentUnitContext$DirectoryEntry::setPath → KILLED

3.3
Location : handleDirectory
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
replaced call to fi/eis/libraries/di/DeploymentUnitContext$DirectoryEntry::setPath with receiver → KILLED

132

1.1
Location : handleDirectory
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed call to fi/eis/libraries/di/DeploymentUnitContext$DirectoryEntry::setFile → KILLED

2.2
Location : handleDirectory
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
replaced call to fi/eis/libraries/di/DeploymentUnitContext$DirectoryEntry::setFile with receiver → KILLED

134

1.1
Location : handleDirectory
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
negated conditional → KILLED

2.2
Location : handleDirectory
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed call to java/io/File::isDirectory → KILLED

3.3
Location : handleDirectory
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed conditional - replaced equality check with false → KILLED

4.4
Location : handleDirectory
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed conditional - replaced equality check with true → KILLED

5.5
Location : handleDirectory
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
equal to less than → KILLED

6.6
Location : handleDirectory
Killed by : none
equal to less or equal → SURVIVED

7.7
Location : handleDirectory
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
equal to greater than → KILLED

8.8
Location : handleDirectory
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
equal to greater or equal → KILLED

9.9
Location : handleDirectory
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
equal to not equal → KILLED

135

1.1
Location : handleDirectory
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed call to fi/eis/libraries/di/DeploymentUnitContext::handleDirectory → KILLED

137

1.1
Location : handleDirectory
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed call to fi/eis/libraries/di/DeploymentUnitContext::add → KILLED

139

1.1
Location : handleDirectory
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed call to fi/eis/libraries/di/DeploymentUnitContext$DirectoryEntry::setPath → KILLED

2.2
Location : handleDirectory
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
replaced call to fi/eis/libraries/di/DeploymentUnitContext$DirectoryEntry::setPath with receiver → KILLED

144

1.1
Location : add
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
negated conditional → KILLED

2.2
Location : add
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed call to fi/eis/libraries/di/DeploymentUnitContext$Entry::getName → KILLED

3.3
Location : add
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed call to fi/eis/libraries/di/DeploymentUnitContext::isClass → KILLED

4.4
Location : add
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed conditional - replaced equality check with false → KILLED

5.5
Location : add
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed conditional - replaced equality check with true → KILLED

6.6
Location : add
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
equal to less than → KILLED

7.7
Location : add
Killed by : none
equal to less or equal → SURVIVED

8.8
Location : add
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
equal to greater than → KILLED

9.9
Location : add
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
equal to greater or equal → KILLED

10.10
Location : add
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
equal to not equal → KILLED

145

1.1
Location : add
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
replaced call to fi/eis/libraries/di/DeploymentUnitContext::filenameToClassname with argument → KILLED

2.2
Location : add
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed call to fi/eis/libraries/di/DeploymentUnitContext$Entry::getName → KILLED

3.3
Location : add
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed call to fi/eis/libraries/di/DeploymentUnitContext::filenameToClassname → KILLED

4.4
Location : add
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed call to fi/eis/libraries/di/DeploymentUnitContext$BeanArchiveBuilder::addClass → KILLED

150

1.1
Location : isClass
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
replaced boolean return with false for fi/eis/libraries/di/DeploymentUnitContext::isClass → KILLED

2.2
Location : isClass
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
replaced boolean return with true for fi/eis/libraries/di/DeploymentUnitContext::isClass → KILLED

3.3
Location : isClass
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed call to java/lang/String::endsWith → KILLED

4.4
Location : isClass
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

154

1.1
Location : filenameToClassname
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
replaced return value with "" for fi/eis/libraries/di/DeploymentUnitContext::filenameToClassname → KILLED

2.2
Location : filenameToClassname
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
Substituted 0 with 1 → KILLED

3.3
Location : filenameToClassname
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
Substituted 47 with 48 → KILLED

4.4
Location : filenameToClassname
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
Substituted 46 with 47 → KILLED

5.5
Location : filenameToClassname
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed call to java/lang/String::lastIndexOf → KILLED

6.6
Location : filenameToClassname
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed call to java/lang/String::substring → KILLED

7.7
Location : filenameToClassname
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
mutated return of Object value for fi/eis/libraries/di/DeploymentUnitContext::filenameToClassname to ( if (x != null) null else throw new RuntimeException ) → KILLED

8.8
Location : filenameToClassname
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
replaced call to java/lang/String::substring with receiver → KILLED

9.9
Location : filenameToClassname
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
Substituted 0 with 1 → KILLED

10.10
Location : filenameToClassname
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
Substituted 47 with 1 → KILLED

11.11
Location : filenameToClassname
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
Substituted 46 with 1 → KILLED

12.12
Location : filenameToClassname
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
Substituted 47 with 0 → KILLED

13.13
Location : filenameToClassname
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
Substituted 46 with 0 → KILLED

14.14
Location : filenameToClassname
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
Substituted 0 with -1 → KILLED

15.15
Location : filenameToClassname
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
Substituted 47 with -1 → KILLED

16.16
Location : filenameToClassname
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
Substituted 46 with -1 → KILLED

17.17
Location : filenameToClassname
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
Substituted 47 with -47 → KILLED

18.18
Location : filenameToClassname
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
Substituted 46 with -46 → KILLED

19.19
Location : filenameToClassname
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
Substituted 0 with 1 → KILLED

20.20
Location : filenameToClassname
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
Substituted 47 with 48 → KILLED

21.21
Location : filenameToClassname
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
Substituted 46 with 47 → KILLED

22.22
Location : filenameToClassname
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
Substituted 0 with -1 → KILLED

23.23
Location : filenameToClassname
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
Substituted 47 with 46 → KILLED

24.24
Location : filenameToClassname
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
Substituted 46 with 45 → KILLED

155

1.1
Location : filenameToClassname
Killed by : none
Substituted 92 with 93 → SURVIVED

2.2
Location : filenameToClassname
Killed by : none
Substituted 46 with 47 → SURVIVED

3.3
Location : filenameToClassname
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed call to java/lang/String::replace → KILLED

4.4
Location : filenameToClassname
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed call to java/lang/String::replace → KILLED

5.5
Location : filenameToClassname
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
replaced call to java/lang/String::replace with receiver → KILLED

6.6
Location : filenameToClassname
Killed by : none
replaced call to java/lang/String::replace with receiver → SURVIVED

7.7
Location : filenameToClassname
Killed by : none
Substituted 92 with 1 → SURVIVED

8.8
Location : filenameToClassname
Killed by : none
Substituted 46 with 1 → SURVIVED

9.9
Location : filenameToClassname
Killed by : none
Substituted 92 with 0 → SURVIVED

10.10
Location : filenameToClassname
Killed by : none
Substituted 46 with 0 → SURVIVED

11.11
Location : filenameToClassname
Killed by : none
Substituted 92 with -1 → SURVIVED

12.12
Location : filenameToClassname
Killed by : none
Substituted 46 with -1 → SURVIVED

13.13
Location : filenameToClassname
Killed by : none
Substituted 92 with -92 → SURVIVED

14.14
Location : filenameToClassname
Killed by : none
Substituted 46 with -46 → SURVIVED

15.15
Location : filenameToClassname
Killed by : none
Substituted 92 with 93 → SURVIVED

16.16
Location : filenameToClassname
Killed by : none
Substituted 46 with 47 → SURVIVED

17.17
Location : filenameToClassname
Killed by : none
Substituted 92 with 91 → SURVIVED

18.18
Location : filenameToClassname
Killed by : none
Substituted 46 with 45 → SURVIVED

174

1.1
Location : <init>
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed call to java/util/ArrayList::<init> → KILLED

2.2
Location : <init>
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
Removed assignment to member variable classes → KILLED

178

1.1
Location : addClass
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed call to java/lang/Class::forName → KILLED

181

1.1
Location : addClass
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
negated conditional → KILLED

2.2
Location : addClass
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
negated conditional → KILLED

3.3
Location : addClass
Killed by : none
removed call to java/lang/Class::isInterface → SURVIVED

4.4
Location : addClass
Killed by : none
removed call to java/lang/Class::getModifiers → SURVIVED

5.5
Location : addClass
Killed by : none
removed call to java/lang/reflect/Modifier::isAbstract → SURVIVED

6.6
Location : addClass
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed conditional - replaced equality check with false → KILLED

7.7
Location : addClass
Killed by : none
removed conditional - replaced equality check with false → SURVIVED

8.8
Location : addClass
Killed by : none
removed conditional - replaced equality check with true → SURVIVED

9.9
Location : addClass
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed conditional - replaced equality check with true → KILLED

10.10
Location : addClass
Killed by : none
not equal to less than → SURVIVED

11.11
Location : addClass
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
equal to less than → KILLED

12.12
Location : addClass
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
not equal to less or equal → KILLED

13.13
Location : addClass
Killed by : none
equal to less or equal → SURVIVED

14.14
Location : addClass
Killed by : none
not equal to greater than → SURVIVED

15.15
Location : addClass
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
equal to greater than → KILLED

16.16
Location : addClass
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
not equal to greater or equal → KILLED

17.17
Location : addClass
Killed by : none
equal to greater or equal → SURVIVED

18.18
Location : addClass
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
not equal to equal → KILLED

19.19
Location : addClass
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
equal to not equal → KILLED

184

1.1
Location : addClass
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
removed call to java/util/List::add → KILLED

186

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

2.2
Location : addClass
Killed by : none
removed call to java/lang/StringBuilder::append → NO_COVERAGE

3.3
Location : addClass
Killed by : none
removed call to java/lang/StringBuilder::append → NO_COVERAGE

4.4
Location : addClass
Killed by : none
removed call to java/lang/StringBuilder::toString → NO_COVERAGE

5.5
Location : addClass
Killed by : none
removed call to java/io/PrintStream::println → NO_COVERAGE

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

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

191

1.1
Location : getClasses
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
replaced return value with Collections.emptyList for fi/eis/libraries/di/DeploymentUnitContext$BeanArchiveBuilder::getClasses → KILLED

2.2
Location : getClasses
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
mutated return of Object value for fi/eis/libraries/di/DeploymentUnitContext$BeanArchiveBuilder::getClasses to ( if (x != null) null else throw new RuntimeException ) → KILLED

201

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

206

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

2.2
Location : getName
Killed by : fi.eis.libraries.di.DIClassScanningJarLoadingTest.testDi(fi.eis.libraries.di.DIClassScanningJarLoadingTest)
mutated return of Object value for fi/eis/libraries/di/DeploymentUnitContext$ZipFileEntry::getName to ( if (x != null) null else throw new RuntimeException ) → KILLED

210

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

211

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

2.2
Location : setName
Killed by : fi.eis.libraries.di.DIClassScanningJarLoadingTest.testDi(fi.eis.libraries.di.DIClassScanningJarLoadingTest)
mutated return of Object value for fi/eis/libraries/di/DeploymentUnitContext$ZipFileEntry::setName to ( if (x != null) null else throw new RuntimeException ) → KILLED

216

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

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

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

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

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

6.6
Location : getUrl
Killed by : none
replaced return value with null for fi/eis/libraries/di/DeploymentUnitContext$ZipFileEntry::getUrl → NO_COVERAGE

7.7
Location : getUrl
Killed by : none
mutated return of Object value for fi/eis/libraries/di/DeploymentUnitContext$ZipFileEntry::getUrl to ( if (x != null) null else throw new RuntimeException ) → NO_COVERAGE

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

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

228

1.1
Location : getName
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
replaced return value with "" for fi/eis/libraries/di/DeploymentUnitContext$DirectoryEntry::getName → KILLED

2.2
Location : getName
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
mutated return of Object value for fi/eis/libraries/di/DeploymentUnitContext$DirectoryEntry::getName to ( if (x != null) null else throw new RuntimeException ) → KILLED

233

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

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

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

4.4
Location : getUrl
Killed by : none
mutated return of Object value for fi/eis/libraries/di/DeploymentUnitContext$DirectoryEntry::getUrl to ( if (x != null) null else throw new RuntimeException ) → NO_COVERAGE

237

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

238

1.1
Location : setPath
Killed by : none
replaced return value with null for fi/eis/libraries/di/DeploymentUnitContext$DirectoryEntry::setPath → SURVIVED

2.2
Location : setPath
Killed by : none
mutated return of Object value for fi/eis/libraries/di/DeploymentUnitContext$DirectoryEntry::setPath to ( if (x != null) null else throw new RuntimeException ) → SURVIVED

242

1.1
Location : getFile
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
replaced return value with null for fi/eis/libraries/di/DeploymentUnitContext$DirectoryEntry::getFile → KILLED

2.2
Location : getFile
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
mutated return of Object value for fi/eis/libraries/di/DeploymentUnitContext$DirectoryEntry::getFile to ( if (x != null) null else throw new RuntimeException ) → KILLED

246

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

247

1.1
Location : setFile
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
replaced return value with null for fi/eis/libraries/di/DeploymentUnitContext$DirectoryEntry::setFile → KILLED

2.2
Location : setFile
Killed by : fi.eis.libraries.di.DIClassScanningTest.testDiLoggingDisabled(fi.eis.libraries.di.DIClassScanningTest)
mutated return of Object value for fi/eis/libraries/di/DeploymentUnitContext$DirectoryEntry::setFile to ( if (x != null) null else throw new RuntimeException ) → KILLED

Active mutators

Tests examined


Report generated by PIT 1.6.7