Skip to content

Commit 40f89a4

Browse files
committed
Merge TestBeanScope init() and initialise() methods
1 parent f4ed6be commit 40f89a4

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

inject-test/src/main/java/io/avaje/inject/test/TestBeanScope.java

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ public abstract class TestBeanScope {
3838
* @return A new test BeanScope with the global "test scope" as its parent.
3939
*/
4040
public static BeanScopeBuilder builder() {
41-
BeanScope baseTestScope = init(true);
42-
return BeanScope.builder().parent(baseTestScope, false);
41+
return BeanScope.builder().parent(initialise(), false);
4342
}
4443

4544
/**
@@ -60,7 +59,7 @@ public static BeanScopeBuilder builder() {
6059
*/
6160
@Nullable
6261
public static BeanScope initialise() {
63-
return init(true);
62+
return TSBuild.initialise(true).baseScope();
6463
}
6564

6665
/**
@@ -77,9 +76,4 @@ public static BeanScope create(boolean shutdownHook) {
7776
return TSBuild.createTestBaseScope(shutdownHook);
7877
}
7978

80-
@Nullable
81-
static BeanScope init(boolean shutdownHook) {
82-
return TSBuild.initialise(shutdownHook).baseScope();
83-
}
84-
8579
}

0 commit comments

Comments
 (0)