forked from fanruan/finekit
Mars.Ma
5 years ago
4 changed files with 52 additions and 22 deletions
@ -1,13 +1,13 @@ |
|||||||
package com.fanruan.api.plugin; |
package com.fanruan.api.plugin; |
||||||
|
|
||||||
|
import com.fanruan.api.runtime.PluginKit; |
||||||
import org.junit.Assert; |
import org.junit.Assert; |
||||||
import org.junit.Test; |
import org.junit.Test; |
||||||
|
|
||||||
public class PluginKitTest { |
public class PluginKitTest { |
||||||
@Test |
@Test |
||||||
public void getArray() { |
public void getArray() { |
||||||
PluginKit p1 = new PluginKit(); |
Assert.assertFalse(PluginKit.isCurrentPluginAvailable()); |
||||||
TestExtraClass p2 = new TestExtraClass(); |
|
||||||
Assert.assertEquals(p1.getArray("abcd"), p2.getArray("abcd")); |
|
||||||
} |
} |
||||||
} |
} |
||||||
|
@ -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