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
4ec03597
Commit
4ec03597
authored
Jul 15, 2019
by
dreis2211
Committed by
Phillip Webb
Jul 15, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish testsupport.junit.platform package
See gh-17524
parent
1d42f355
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
8 additions
and
47 deletions
+8
-47
Launcher.java
...ngframework/boot/testsupport/junit/platform/Launcher.java
+1
-6
LauncherDiscoveryRequest.java
.../testsupport/junit/platform/LauncherDiscoveryRequest.java
+1
-1
LauncherDiscoveryRequestBuilder.java
...pport/junit/platform/LauncherDiscoveryRequestBuilder.java
+1
-1
ReflectiveWrapper.java
...rk/boot/testsupport/junit/platform/ReflectiveWrapper.java
+1
-1
SummaryGeneratingListener.java
...testsupport/junit/platform/SummaryGeneratingListener.java
+1
-1
TestExecutionSummary.java
...boot/testsupport/junit/platform/TestExecutionSummary.java
+1
-1
TestPlan.java
...ngframework/boot/testsupport/junit/platform/TestPlan.java
+0
-34
package-info.java
...amework/boot/testsupport/junit/platform/package-info.java
+2
-2
No files found.
spring-boot-project/spring-boot-tools/spring-boot-test-support/src/main/java/org/springframework/boot/testsupport/junit/platform/Launcher.java
View file @
4ec03597
/*
/*
* 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.
...
@@ -37,11 +37,6 @@ public class Launcher extends ReflectiveWrapper {
...
@@ -37,11 +37,6 @@ public class Launcher extends ReflectiveWrapper {
this
.
instance
=
factoryClass
.
getMethod
(
"create"
).
invoke
(
null
);
this
.
instance
=
factoryClass
.
getMethod
(
"create"
).
invoke
(
null
);
}
}
public
TestPlan
discover
(
LauncherDiscoveryRequest
request
)
throws
Throwable
{
return
new
TestPlan
(
getClassLoader
(),
this
.
type
.
getMethod
(
"discover"
,
request
.
type
).
invoke
(
this
.
instance
,
request
.
instance
));
}
public
void
registerTestExecutionListeners
(
SummaryGeneratingListener
listener
)
throws
Throwable
{
public
void
registerTestExecutionListeners
(
SummaryGeneratingListener
listener
)
throws
Throwable
{
Object
listeners
=
Array
.
newInstance
(
this
.
testExecutionListenerType
,
1
);
Object
listeners
=
Array
.
newInstance
(
this
.
testExecutionListenerType
,
1
);
Array
.
set
(
listeners
,
0
,
listener
.
instance
);
Array
.
set
(
listeners
,
0
,
listener
.
instance
);
...
...
spring-boot-project/spring-boot-tools/spring-boot-test-support/src/main/java/org/springframework/boot/testsupport/junit/platform/LauncherDiscoveryRequest.java
View file @
4ec03597
/*
/*
* 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.
...
...
spring-boot-project/spring-boot-tools/spring-boot-test-support/src/main/java/org/springframework/boot/testsupport/junit/platform/LauncherDiscoveryRequestBuilder.java
View file @
4ec03597
/*
/*
* 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.
...
...
spring-boot-project/spring-boot-tools/spring-boot-test-support/src/main/java/org/springframework/boot/testsupport/junit/platform/ReflectiveWrapper.java
View file @
4ec03597
/*
/*
* 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.
...
...
spring-boot-project/spring-boot-tools/spring-boot-test-support/src/main/java/org/springframework/boot/testsupport/junit/platform/SummaryGeneratingListener.java
View file @
4ec03597
/*
/*
* 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.
...
...
spring-boot-project/spring-boot-tools/spring-boot-test-support/src/main/java/org/springframework/boot/testsupport/junit/platform/TestExecutionSummary.java
View file @
4ec03597
/*
/*
* 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.
...
...
spring-boot-project/spring-boot-tools/spring-boot-test-support/src/main/java/org/springframework/boot/testsupport/junit/platform/TestPlan.java
deleted
100644 → 0
View file @
1d42f355
/*
* Copyright 2012-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
testsupport
.
junit
.
platform
;
/**
* Reflective mirror of JUnit 5's {@code TestPlan}.
*
* @author Phillip Webb
* @since 2.2.0
*/
public
class
TestPlan
extends
ReflectiveWrapper
{
final
Object
instance
;
TestPlan
(
ClassLoader
classLoader
,
Object
instance
)
throws
Throwable
{
super
(
classLoader
,
"org.junit.platform.launcher.TestPlan"
);
this
.
instance
=
instance
;
}
}
spring-boot-project/spring-boot-tools/spring-boot-test-support/src/main/java/org/springframework/boot/testsupport/junit/platform/package-info.java
View file @
4ec03597
/*
/*
* 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.
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
*/
*/
/**
/**
* Reflective mirror of JUnit 5 classes required to workaround s
h
urefire bug
* Reflective mirror of JUnit 5 classes required to workaround surefire bug
* {@code SUREFIRE-1679}.
* {@code SUREFIRE-1679}.
*/
*/
package
org
.
springframework
.
boot
.
testsupport
.
junit
.
platform
;
package
org
.
springframework
.
boot
.
testsupport
.
junit
.
platform
;
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