Skip to content

Commit d720301

Browse files
author
孙健
committed
fix testing read local ioc
1 parent 00c0da7 commit d720301

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
group 'nlpcn.org'
2-
version '2.1.3'
2+
version '2.1.5'
33

44
apply plugin: 'java'
55
apply plugin: 'war'

src/main/java/org/nlpcn/jcoder/util/Testing.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ public class Testing {
5656
public static <T> T instance(Class<T> c, String iocPath) throws Exception {
5757
Ioc ioc = new NutIoc(new JsonLoader(iocPath));
5858

59+
StaticValue.setSystemIoc(ioc);
60+
StaticValue.setUserIoc(ioc);
61+
5962
Mirror<?> mirror = Mirror.me(c);
6063
T obj = c.newInstance();
6164

0 commit comments

Comments
 (0)