forked from fanruan/finekit
Browse Source
* commit 'a64da28c498ccc446af75d3085793ca5973b5ff4': 参数工具类remotes/1611766341912730171/master
Mars.Ma
5 years ago
4 changed files with 52 additions and 22 deletions
@ -1,13 +1,13 @@
|
||||
package com.fanruan.api.plugin; |
||||
|
||||
import com.fanruan.api.runtime.PluginKit; |
||||
import org.junit.Assert; |
||||
import org.junit.Test; |
||||
|
||||
public class PluginKitTest { |
||||
@Test |
||||
public void getArray(){ |
||||
PluginKit p1 = new PluginKit(); |
||||
TestExtraClass p2 = new TestExtraClass(); |
||||
Assert.assertEquals(p1.getArray("abcd"), p2.getArray("abcd")); |
||||
public void getArray() { |
||||
Assert.assertFalse(PluginKit.isCurrentPluginAvailable()); |
||||
|
||||
} |
||||
} |
||||
|
@ -1,12 +0,0 @@
|
||||
package com.fanruan.api.plugin; |
||||
import com.fr.plugin.injectable.PluginSingleInjection; |
||||
|
||||
public class TestExtraClass extends com.fr.plugin.AbstractExtraClassManager{ |
||||
protected boolean mountSpecific(PluginSingleInjection injection){ |
||||
return true; |
||||
} |
||||
|
||||
protected boolean demountSpecific(PluginSingleInjection injection){ |
||||
return true; |
||||
} |
||||
} |
Loading…
Reference in new issue