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

test for dead component

parent 46e49350
Pipeline #158114 passed with stages
in 55 seconds
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 TestDeadComponent {
private DeadComponent detector;
void init() {
ModelAdapter model = new ModelAdapter("CentralModel.xml", null);
detector = new DeadComponent();
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