I have SpringBootAplication
called MyApplication and one of the plugins that scans code coverage: jacoco
complains about code coverage in this file.
My question is should I create unit test for this file, and if so what parts should I test?
package com.my.package.cdss;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
@SpringBootApplication
@ComponentScan("com.my.package")
@EnableAspectJAutoProxy
public class MyApplication {
public static void main(String[] args) {
SpringApplication.run(MyApplication.class, args);
}
}