Commit a776b334 authored by Johannes Salentin's avatar Johannes Salentin
Browse files

further tests

coverage only considering smells package because model is generated and JAXB functionality was provided
parent b0ebf8e8
Pipeline #158137 passed with stages
in 1 minute and 9 seconds
[![pipeline status](https://git.rwth-aachen.de/ba-ea-smells/program/badges/develop/pipeline.svg)](https://git.rwth-aachen.de/ba-ea-smells/program/commits/develop)
[![coverage report](https://git.rwth-aachen.de/ba-ea-smells/program/badges/develop/coverage.svg)](https://git.rwth-aachen.de/ba-ea-smells/program/commits/develop)
[![Contributions welcome](https://img.shields.io/badge/contributions-welcome-orange.svg)](https://git.rwth-aachen.de/ba-ea-smells/program/blob/master/CONTRIBUTING.md)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)
# Program (prototype)
......
......@@ -52,6 +52,12 @@
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.5.201505241946</version>
<configuration>
<excludes>
<exclude>de/example/model/*</exclude>
<exclude>de/example/main/*</exclude>
</excludes>
</configuration>
<executions>
<execution>
<id>pre-unit-test</id>
......
package de.example.smells;
import de.example.main.ModelAdapter;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
class TestDenseStructure {
private DenseStructure detector;
@BeforeAll
void init() {
ModelAdapter model = new ModelAdapter("CentralModel.xml", null);
Detector.setModel(model);
detector = new DenseStructure();
}
@Test
void test() {
assertEquals(detector.detect().size(), 0);
}
}
package de.example.smells;
import de.example.main.ModelAdapter;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
class TestDocumentation {
private Documentation detector;
@BeforeAll
void init() {
ModelAdapter model = new ModelAdapter("CentralModel.xml", null);
Detector.setModel(model);
detector = new Documentation();
}
@Test
void test() {
assertEquals(detector.detect().size(), 0);
}
}
package de.example.smells;
import de.example.main.ModelAdapter;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
class TestDuplication {
private Duplication detector;
@BeforeAll
void init() {
ModelAdapter model = new ModelAdapter("CentralModel.xml", null);
Detector.setModel(model);
detector = new Duplication();
}
@Test
void test() {
assertEquals(detector.detect().size(), 2);
}
}
package de.example.smells;
import de.example.main.ModelAdapter;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
class TestHubLikeModularization {
private HubLikeModularization detector;
@BeforeAll
void init() {
ModelAdapter model = new ModelAdapter("CentralModel.xml", null);
Detector.setModel(model);
detector = new HubLikeModularization();
}
@Test
void test() {
assertEquals(detector.detect().size(), 0);
}
}
package de.example.smells;
import de.example.main.ModelAdapter;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
class TestSharedPersistency {
private SharedPersistency detector;
@BeforeAll
void init() {
ModelAdapter model = new ModelAdapter("CentralModel.xml", null);
Detector.setModel(model);
detector = new SharedPersistency();
}
@Test
void test() {
assertEquals(detector.detect().size(), 1);
}
}
package de.example.smells;
import de.example.main.ModelAdapter;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
class TestStrictLayersViolation {
private StrictLayersViolation detector;
@BeforeAll
void init() {
ModelAdapter model = new ModelAdapter("CentralModel.xml", null);
Detector.setModel(model);
detector = new StrictLayersViolation();
}
@Test
void test() {
assertEquals(detector.detect().size(), 0);
}
}
package de.example.smells;
import de.example.main.ModelAdapter;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
class TestWeakenedModularity {
private WeakenedModularity detector;
@BeforeAll
void init() {
ModelAdapter model = new ModelAdapter("CentralModel.xml", null);
Detector.setModel(model);
detector = new WeakenedModularity();
}
@Test
void test() {
assertEquals(detector.detect().size(), 0);
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment