Skip to content

Commit

Permalink
Fix issue with Profiles test
Browse files Browse the repository at this point in the history
Apparently after Spring 4.3 the @ContextConfiguration cannot be empty.
  • Loading branch information
ksaua committed Jun 26, 2019
1 parent 053484c commit 13b942b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test/java/no/saua/remock/ProfilesTest.java
@@ -1,6 +1,7 @@
package no.saua.remock;


import no.saua.remock.exampleapplication.SomeService;
import org.junit.Test;
import org.springframework.core.env.Environment;
import org.springframework.test.context.ActiveProfiles;
Expand All @@ -11,7 +12,7 @@
import static org.junit.Assert.assertEquals;

@ActiveProfiles("remock-profile")
@ContextConfiguration
@ContextConfiguration(classes = SomeService.class)
public class ProfilesTest extends CommonTest {

@Inject
Expand Down

0 comments on commit 13b942b

Please sign in to comment.