package org.carlspring.strongbox.cron.context;

import org.carlspring.strongbox.config.WebConfig;
import org.carlspring.strongbox.cron.config.CronTasksConfig;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import org.springframework.security.test.context.support.WithUserDetails;
import org.springframework.test.annotation.IfProfileValue;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.web.WebAppConfiguration;

/**
 * Marks test to be executed only under special spring active profile.
 *
 * @author Alex Oreshkevich
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@ContextConfiguration(classes = { CronTasksConfig.class,
                                  WebConfig.class })
@WebAppConfiguration
@WithUserDetails(value = "admin")
@IfProfileValue(name = "spring.profiles.active", values = { "quartz-integration-test" })
public @interface CronTaskTest
{

}

@@ -961,16 +961,32 @@
 active%22,
+%0A               
  values 
@@ -1013,16 +1013,17 @@
 ion-test
+s
 %22 %7D)%0Apub

Fix the issues reported from Sonar.