-
Notifications
You must be signed in to change notification settings - Fork 471
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for #802 Removed thrown IllegalArgumentException to make sure non…
…-spock-tests … (#803) * Removed thrown IllegalArgumentException to make sure non-spock-tests executed by SpringRunner don't fail
- Loading branch information
Showing
2 changed files
with
45 additions
and
25 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
spock-spring/spring5-test/src/test/groovy/org/spockframework/spring5/SpringRunnerTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package org.spockframework.spring5; | ||
|
||
import org.junit.Assert; | ||
import org.junit.Test; | ||
import org.junit.runner.RunWith; | ||
import org.springframework.test.context.ContextConfiguration; | ||
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; | ||
|
||
/** | ||
* Make sure we still can correctly execute tests executed by the SpringRunner that are not spock tests | ||
*/ | ||
@RunWith(SpringJUnit4ClassRunner.class) | ||
@ContextConfiguration | ||
public class SpringRunnerTest { | ||
|
||
@Test | ||
public void testThatSpringRunnerExecutesCorrectly() { | ||
Assert.assertTrue(true); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters