Skip to content

Commit

Permalink
Merge pull request #15 from jupiter-tools/feature/add-separated-profi…
Browse files Browse the repository at this point in the history
…les-in-the-annotation-system

use specific profiles for test containers extensions
  • Loading branch information
antkorwin authored Apr 15, 2019
2 parents 38ee365 + 1dd3dca commit 72e1b86
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
package com.jupiter.tools.spring.test.activemq.annotation;

import com.jupiter.tools.spring.test.activemq.extension.ActiveMqTcExtension;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.test.context.ActiveProfiles;

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

import com.jupiter.tools.spring.test.activemq.extension.ActiveMqTcExtension;
import org.junit.jupiter.api.extension.ExtendWith;

/**
* Created on 28.01.2019.
*
Expand All @@ -16,5 +17,6 @@
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@ExtendWith(ActiveMqTcExtension.class)
@ActiveProfiles("jupiter-tools.spring-test-activemq.test-containers")
public @interface EnableActiveMqTestContainers {
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.jupiter.tools.spring.test.jpa.extension.TraceSqlExtension;
import com.jupiter.tools.spring.test.mysql.extension.MySqlTcExtension;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.ContextConfiguration;

import java.lang.annotation.ElementType;
Expand All @@ -21,5 +22,6 @@
@Target(ElementType.TYPE)
@ExtendWith(MySqlTcExtension.class)
@ExtendWith(TraceSqlExtension.class)
@ActiveProfiles("jupiter-tools.spring-test-mysql.test-containers")
public @interface EnableMySqlTestContainers {
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.jupiter.tools.spring.test.jpa.extension.TraceSqlExtension;
import com.jupiter.tools.spring.test.postgres.extension.PostgresTcExtension;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.test.context.ActiveProfiles;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
Expand All @@ -20,5 +21,6 @@
@Target(ElementType.TYPE)
@ExtendWith(PostgresTcExtension.class)
@ExtendWith(TraceSqlExtension.class)
@ActiveProfiles("jupiter-tools.spring-test-postgres.test-containers")
public @interface EnablePostgresTestContainers {
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import com.jupiter.tools.spring.test.rabbitmq.extension.RabbitMqTcExtension;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.test.context.ActiveProfiles;

/**
* Created on 28.01.2019.
Expand All @@ -16,5 +17,6 @@
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@ExtendWith(RabbitMqTcExtension.class)
@ActiveProfiles("jupiter-tools.spring-test-rabbitmq.test-containers")
public @interface EnableRabbitMqTestContainers {
}

0 comments on commit 72e1b86

Please sign in to comment.