Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
c04eba7e
Commit
c04eba7e
authored
Feb 12, 2019
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish "Add TestNG support in TestTypeExcludeFilter"
See gh-7630
parent
b005008c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
17 deletions
+12
-17
pom.xml
spring-boot-project/spring-boot-dependencies/pom.xml
+0
-6
pom.xml
spring-boot-project/spring-boot-parent/pom.xml
+6
-0
AbstractTestNgTestWithConfig.java
...oot/test/context/filter/AbstractTestNgTestWithConfig.java
+2
-8
TestTypeExcludeFilterTests.java
.../boot/test/context/filter/TestTypeExcludeFilterTests.java
+4
-3
No files found.
spring-boot-project/spring-boot-dependencies/pom.xml
View file @
c04eba7e
...
@@ -182,7 +182,6 @@
...
@@ -182,7 +182,6 @@
<statsd-client.version>
3.1.0
</statsd-client.version>
<statsd-client.version>
3.1.0
</statsd-client.version>
<sun-mail.version>
${javax-mail.version}
</sun-mail.version>
<sun-mail.version>
${javax-mail.version}
</sun-mail.version>
<saaj-impl.version>
1.5.0
</saaj-impl.version>
<saaj-impl.version>
1.5.0
</saaj-impl.version>
<testng.version>
6.10
</testng.version>
<thymeleaf.version>
3.0.11.RELEASE
</thymeleaf.version>
<thymeleaf.version>
3.0.11.RELEASE
</thymeleaf.version>
<thymeleaf-extras-springsecurity.version>
3.0.4.RELEASE
</thymeleaf-extras-springsecurity.version>
<thymeleaf-extras-springsecurity.version>
3.0.4.RELEASE
</thymeleaf-extras-springsecurity.version>
<thymeleaf-layout-dialect.version>
2.3.0
</thymeleaf-layout-dialect.version>
<thymeleaf-layout-dialect.version>
2.3.0
</thymeleaf-layout-dialect.version>
...
@@ -2966,11 +2965,6 @@
...
@@ -2966,11 +2965,6 @@
<artifactId>
nio-multipart-parser
</artifactId>
<artifactId>
nio-multipart-parser
</artifactId>
<version>
${nio-multipart-parser.version}
</version>
<version>
${nio-multipart-parser.version}
</version>
</dependency>
</dependency>
<dependency>
<groupId>
org.testng
</groupId>
<artifactId>
testng
</artifactId>
<version>
${testng.version}
</version>
</dependency>
<dependency>
<dependency>
<groupId>
org.thymeleaf
</groupId>
<groupId>
org.thymeleaf
</groupId>
<artifactId>
thymeleaf
</artifactId>
<artifactId>
thymeleaf
</artifactId>
...
...
spring-boot-project/spring-boot-parent/pom.xml
View file @
c04eba7e
...
@@ -27,6 +27,7 @@
...
@@ -27,6 +27,7 @@
<maven-resolver.version>
1.1.1
</maven-resolver.version>
<maven-resolver.version>
1.1.1
</maven-resolver.version>
<spock.version>
1.0-groovy-2.4
</spock.version>
<spock.version>
1.0-groovy-2.4
</spock.version>
<testcontainers.version>
1.10.6
</testcontainers.version>
<testcontainers.version>
1.10.6
</testcontainers.version>
<testng.version>
6.14.3
</testng.version>
<dependency-management-plugin.version>
1.0.6.RELEASE
</dependency-management-plugin.version>
<dependency-management-plugin.version>
1.0.6.RELEASE
</dependency-management-plugin.version>
<spring-doc-resources.version>
0.1.0.BUILD-SNAPSHOT
</spring-doc-resources.version>
<spring-doc-resources.version>
0.1.0.BUILD-SNAPSHOT
</spring-doc-resources.version>
</properties>
</properties>
...
@@ -246,6 +247,11 @@
...
@@ -246,6 +247,11 @@
<scope>
import
</scope>
<scope>
import
</scope>
<type>
pom
</type>
<type>
pom
</type>
</dependency>
</dependency>
<dependency>
<groupId>
org.testng
</groupId>
<artifactId>
testng
</artifactId>
<version>
${testng.version}
</version>
</dependency>
<dependency>
<dependency>
<groupId>
org.zeroturnaround
</groupId>
<groupId>
org.zeroturnaround
</groupId>
<artifactId>
zt-zip
</artifactId>
<artifactId>
zt-zip
</artifactId>
...
...
spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/context/filter/AbstractTestN
G
.java
→
spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/context/filter/AbstractTestN
gTestWithConfig
.java
View file @
c04eba7e
/*
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
9
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -20,14 +20,8 @@ import org.testng.annotations.Test;
...
@@ -20,14 +20,8 @@ import org.testng.annotations.Test;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.annotation.Configuration
;
/**
* Abstract test with nest {@code @Configuration} and {@code @Test} used by
* {@link TestTypeExcludeFilter}.
*
* @author Eddú Meléndez
*/
@Test
@Test
public
abstract
class
AbstractTestN
G
{
public
abstract
class
AbstractTestN
gTestWithConfig
{
@Configuration
@Configuration
static
class
Config
{
static
class
Config
{
...
...
spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/context/filter/TestTypeExcludeFilterTests.java
View file @
c04eba7e
/*
/*
* Copyright 2012-201
8
the original author or authors.
* Copyright 2012-201
9
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -99,9 +99,10 @@ public class TestTypeExcludeFilterTests {
...
@@ -99,9 +99,10 @@ public class TestTypeExcludeFilterTests {
}
}
@Test
@Test
public
void
matchesNestedConfigurationClassWithoutTest
n
gAnnotation
()
public
void
matchesNestedConfigurationClassWithoutTest
N
gAnnotation
()
throws
Exception
{
throws
Exception
{
assertThat
(
this
.
filter
.
match
(
getMetadataReader
(
AbstractTestNG
.
Config
.
class
),
assertThat
(
this
.
filter
.
match
(
getMetadataReader
(
AbstractTestNgTestWithConfig
.
Config
.
class
),
this
.
metadataReaderFactory
)).
isTrue
();
this
.
metadataReaderFactory
)).
isTrue
();
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment