Skip to content
Snippets Groups Projects
Commit 90e9ef6b authored by Andrea Burattin's avatar Andrea Burattin
Browse files

Added JaCoCo tests and worked on a code smell

parent 5a30f81b
No related branches found
No related tags found
No related merge requests found
...@@ -91,6 +91,12 @@ ...@@ -91,6 +91,12 @@
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
<version>2.22.2</version> <version>2.22.2</version>
</plugin> </plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.8-SNAPSHOT</version>
</plugin>
</plugins> </plugins>
</build> </build>
</project> </project>
...@@ -23,6 +23,10 @@ public class EventUtils { ...@@ -23,6 +23,10 @@ public class EventUtils {
private static final XFactory xesFactory = new XFactoryNaiveImpl(); private static final XFactory xesFactory = new XFactoryNaiveImpl();
private EventUtils() {
throw new IllegalStateException("Utility class");
}
/** /**
* Creates a new {@link XTrace} referring to one event * Creates a new {@link XTrace} referring to one event
* *
......
...@@ -21,8 +21,6 @@ import io.reactivex.rxjava3.core.Observable; ...@@ -21,8 +21,6 @@ import io.reactivex.rxjava3.core.Observable;
public class FiltersTests { public class FiltersTests {
EventUtils e = new EventUtils();
@Test @Test
public void test_exclude_activities_on_name_filter() { public void test_exclude_activities_on_name_filter() {
List<String> results = new ArrayList<String>(); List<String> results = new ArrayList<String>();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment