TSK-1531: moved all example classes to dedicated example package

This commit is contained in:
Mustapha Zorgati 2021-02-02 19:16:48 +01:00
parent c507951810
commit 477470302a
32 changed files with 33 additions and 32 deletions

View File

@ -1,4 +1,4 @@
package pro.taskana;
package pro.taskana.example;
import javax.annotation.PostConstruct;
import javax.ejb.EJB;

View File

@ -1,4 +1,4 @@
package pro.taskana;
package pro.taskana.example;
import javax.ejb.Stateless;
import javax.inject.Inject;

View File

@ -1,4 +1,4 @@
package pro.taskana;
package pro.taskana.example;
import javax.annotation.PostConstruct;
import org.springframework.beans.factory.annotation.Autowired;

View File

@ -1,4 +1,4 @@
package pro.taskana;
package pro.taskana.example;
import java.sql.SQLException;
import javax.sql.DataSource;
@ -13,6 +13,7 @@ import org.springframework.context.annotation.PropertySource;
import org.springframework.jdbc.datasource.DataSourceTransactionManager;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import pro.taskana.SpringTaskanaEngineConfiguration;
import pro.taskana.classification.api.ClassificationService;
import pro.taskana.common.api.TaskanaEngine;
import pro.taskana.task.api.TaskService;

View File

@ -1,4 +1,4 @@
package pro.taskana;
package pro.taskana.example;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;

View File

@ -1,4 +1,4 @@
package pro.taskana;
package pro.taskana.example;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;

View File

@ -1,4 +1,4 @@
package pro.taskana;
package pro.taskana.example;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatThrownBy;

View File

@ -1,4 +1,4 @@
package pro.taskana;
package pro.taskana.example;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

View File

@ -1,4 +1,4 @@
package pro.taskana.rest;
package pro.taskana.example.boot;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

View File

@ -1,4 +1,4 @@
package pro.taskana.rest;
package pro.taskana.example.boot;
import java.sql.SQLException;
import javax.sql.DataSource;

View File

@ -1,4 +1,4 @@
package pro.taskana.rest.security;
package pro.taskana.example.boot.security;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.HttpMethod;

View File

@ -1,4 +1,4 @@
package pro.taskana.jobs;
package pro.taskana.example.jobs;
import java.lang.reflect.InvocationTargetException;
import java.security.Principal;

View File

@ -1,4 +1,4 @@
package pro.taskana.jobs;
package pro.taskana.example.jobs;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

View File

@ -1,4 +1,4 @@
package pro.taskana.rest;
package pro.taskana.example.rest;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;

View File

@ -1,4 +1,4 @@
package pro.taskana.rest.controllers;
package pro.taskana.example.rest.controllers;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

View File

@ -1,4 +1,4 @@
package pro.taskana.rest.controllers;
package pro.taskana.example.rest.controllers;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

View File

@ -1,4 +1,4 @@
package pro.taskana.rest.models;
package pro.taskana.example.rest.models;
/** model for a user. */
public class User {

View File

@ -1,4 +1,4 @@
package pro.taskana;
package pro.taskana.example;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;

View File

@ -1,4 +1,4 @@
package pro.taskana.jobs;
package pro.taskana.example.jobs;
import static org.assertj.core.api.Assertions.assertThat;
import static pro.taskana.common.test.rest.RestHelper.TEMPLATE;

View File

@ -1,4 +1,4 @@
package pro.taskana.ldap;
package pro.taskana.example.ldap;
import static org.assertj.core.api.Assertions.assertThat;

View File

@ -1,4 +1,4 @@
package pro.taskana;
package pro.taskana.example.wildfly;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

View File

@ -1,4 +1,4 @@
package pro.taskana.wildfly.security;
package pro.taskana.example.wildfly.security;
import java.io.IOException;
import java.security.AccessController;

View File

@ -1,4 +1,4 @@
package pro.taskana.wildfly.security;
package pro.taskana.example.wildfly.security;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

View File

@ -1,4 +1,4 @@
package pro.taskana.wildfly.security;
package pro.taskana.example.wildfly.security;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;

View File

@ -1,4 +1,4 @@
package pro.taskana.wildfly.security;
package pro.taskana.example.wildfly.security;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;

View File

@ -1,4 +1,4 @@
package pro.taskana;
package pro.taskana.example.wildfly;
import java.io.BufferedReader;
import java.io.File;

View File

@ -1,4 +1,4 @@
package pro.taskana;
package pro.taskana.example.wildfly;
import static org.assertj.core.api.Assertions.assertThat;
import static pro.taskana.common.test.rest.RestHelper.TEMPLATE;